in reply to Strange behaviour of XML char handler

Your problem lies with understanding the debugger. If you do a step it executes the previous shown line and shows you the next. For example

> cat t7.pl #!/usr/bin/perl -w $t=1; $t=5; $t=10; > perl -d t7.pl main::(t7.pl:7): my $t=1; DB<1> x $t 0 undef DB<2> s main::(t7.pl:8): $t=5; DB<2> x $t 0 1 DB<3> q

So the line ($p, $data) = @_; is the one that changes your var

Replies are listed 'Best First'.
Re: Strange behaviour of XML char handler
by kgullekson (Initiate) on Feb 21, 2009 at 13:25 UTC
    Thanks for the wisdom!