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
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|