~ubuntu-branches/ubuntu/maverick/perl-tk/maverick

« back to all changes in this revision

Viewing changes to Tk/Trace.pm

  • Committer: Bazaar Package Importer
  • Author(s): Colin Tuckley
  • Date: 2010-05-30 09:19:40 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100530091940-wbmq9bloo92t9m6x
Tags: 1:804.029-1
* New Upstream Release (Closes: #578814).
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
package Tk::Trace;
2
2
 
3
3
use vars qw($VERSION);
4
 
$VERSION = '4.008'; # was: sprintf '4.%03d', q$Revision: #7 $ =~ /\D(\d+)\s*$/;
 
4
$VERSION = '4.009'; # was: sprintf '4.%03d', q$Revision: #7 $ =~ /\D(\d+)\s*$/;
5
5
 
6
6
use Carp;
7
7
use Tie::Watch;
178
178
 
179
179
    my ( $parent, $vref, $op_not_honored, $callabck_not_honored ) = @_;
180
180
 
181
 
    if ( defined $TRACE{$vref}->[0] ) {
182
 
        $$vref = $TRACE{$vref}->[0]->Fetch;
183
 
        $TRACE{$vref}->[0]->Unwatch;
184
 
        delete $TRACE{$vref};
 
181
    if ( defined $vref && defined $TRACE{$vref} && defined $TRACE{$vref}->[0] ) {
 
182
        $$vref = $TRACE{$vref}->[0]->Fetch;
 
183
        $TRACE{$vref}->[0]->Unwatch;
 
184
        delete $TRACE{$vref};
185
185
    }
186
186
 
187
187
} # end traceVdelete