Closed p5pRT closed 10 years ago
Hi all\,
this series of patches adds more tests to the perl debugger and starts to refactor it. It can also be found here:
https://github.com/shlomif/perl/tree/shlomif-perl-d-refactoring
Please apply it.
Regards\,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/
Doing linear scans over an associative array is like trying to club someone to death with a loaded Uzi. — Larry Wall
Please reply to list if it's a mailing list post - http://shlom.in/reply .
- print @@ -3069,11 +3075,14 @@ the bottom of the loop. =cut + my $print_cmd = 'print {$DB::OUT} '; # p - print (no args): print $_. - $cmd =~ s/^p$/print {\$DB::OUT} \$_/; + if ($cmd eq 'p') { + $cmd = $print_cmd . '$_'; + } # p - print the given expression. - $cmd =~ s/^p\b/print {\$DB::OUT} /; + $cmd =~ s/\Ap\b/$print_cmd /; =head4 C<=> - define command alias @@ -3082,7 +3091,7 @@ Manipulates C<%alias> to add or list command aliases. =cut # = - set up a command alias. - $cmd =~ s/^=\s*// && do { + if ($cmd =~ s/\A=\s*//) { my @keys; if ( length $cmd == 0 ) { @@ -3151,7 +3160,7 @@ Manipulates C<%alias> to add or list command aliases. } } ## end for my $k (@keys) next CMD; - }; + } =head4 C
Migrated from rt.perl.org#115084 (status was 'resolved')
Searchable as RT115084$