Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

SwaJime's scratchpad

by SwaJime (Beadle)
on Mar 15, 2013 at 20:39 UTC ( #1023773=scratchpad: print w/replies, xml ) Need Help??

So I'm stepping through some code in a cpan module ... I have undef for @_, so I'm expecting to execute line 148 next. However, the debugger puts me on line 145. Why did it go to 145 instead of 148?
DB<13> n Net::DBus::RemoteService::get_object(/usr/lib/perl5/Net/DBus/RemoteSer +vice.pm:144): 144: if (@_) { DB<13> l 144==> if (@_) { 145: my $interface = shift; 146: return $self->{objects}->{$object_path}->as_interface($int +erface); 147 } else { 148: return $self->{objects}->{$object_path}; 149 } 150 } 151 152: 1; 153 DB<13> x @_ 0 undef DB<14> n Net::DBus::RemoteService::get_object(/usr/lib/perl5/Net/DBus/RemoteSer +vice.pm:145): 145: my $interface = shift; DB<14> n Net::DBus::RemoteService::get_object(/usr/lib/perl5/Net/DBus/RemoteSer +vice.pm:146): 146: return $self->{objects}->{$object_path}->as_interface($int +erface); DB<14> x $interface 0 undef
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2016-09-25 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (463 votes). Check out past polls.