Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: perl5db - how to step into my sub without stepping into glob

by Anonymous Monk
on Jun 14, 2012 at 11:37 UTC ( #976183=note: print w/ replies, xml ) Need Help??


in reply to perl5db - how to step into my sub without stepping into glob

Ok, found the answer after asking the question, its s Fudge or s main::Fudge

$ perl -d p5dbglob.pl . . . Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(p5dbglob.pl:8): Main( @ARGV ); DB<1> s main::Main(p5dbglob.pl:11): for my $dir ( @_ ){ DB<1> s main::Main(p5dbglob.pl:12): chdir $dir or die $!; DB<1> s main::Main(p5dbglob.pl:13): Fudge( $dir, glob '*' ); DB<1> s Fudge main::Main((eval 8)[C:/perl/5.14.1/lib/perl5db.pl:640]:3): 3: Fudge; DB<<2>> s main::Fudge(p5dbglob.pl:17): my $dir = shift; DB<<2>> s main::Fudge(p5dbglob.pl:18): my $count = @_; DB<<2>> q

Before that I also found you can exit the subroutine you stepped into with r

$ perl -d p5dbglob.pl . . . Loading DB routines from perl5db.pl version 1.33 Editor support available. Enter h or `h h' for help, or `perldoc perldebug' for more help. main::(p5dbglob.pl:8): Main( @ARGV ); DB<1> s main::Main(p5dbglob.pl:11): for my $dir ( @_ ){ DB<1> s main::Main(p5dbglob.pl:12): chdir $dir or die $!; DB<1> s main::Main(p5dbglob.pl:13): Fudge( $dir, glob '*' ); DB<1> s File::Glob::csh_glob(C:/perl/5.14.1/lib/MSWin32-x86-multi-thread/File/ +Glob.pm:78): 78: my $pat = shift; DB<1> r list context return from File::Glob::csh_glob: 0 'foo.txt' 1 'dum1.txt' 2 'dum2.txt' 3 'out.txt' 4 'p5dbglob.pl' main::Fudge(p5dbglob.pl:17): my $dir = shift; DB<1> s main::Fudge(p5dbglob.pl:18): my $count = @_; DB<1> q

Thanks


Comment on Re: perl5db - how to step into my sub without stepping into glob
Select or Download Code
Re^2: perl5db - how to step into my sub without stepping into glob
by bibliophile (Parson) on Jun 14, 2012 at 15:41 UTC
    Heh. I go out of my way to *not* step into Fudge() :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://976183]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2014-08-31 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls