diff options
author | Shlomi Fish <shlomif@shlomifish.org> | 2012-10-13 20:25:28 +0200 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-11-12 09:18:40 -0500 |
commit | 7019653802c5a3ebbe514d94777bca898d9a56c1 (patch) | |
tree | 2740c043f19ae976b3f84dd064329e559ce827d7 /lib | |
parent | 4d0e1f389129a6104663d9dbfe78f6108f4f3a51 (diff) | |
download | perl-7019653802c5a3ebbe514d94777bca898d9a56c1.tar.gz |
Extract _handle_cmd_wrapper_commands.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perl5db.pl | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/perl5db.pl b/lib/perl5db.pl index 0a0b4407a5..9042ab0d9c 100644 --- a/lib/perl5db.pl +++ b/lib/perl5db.pl @@ -2824,10 +2824,7 @@ deal with them instead of processing them in-line. # All of these commands were remapped in perl 5.8.0; # we send them off to the secondary dispatcher (see below). - if (my ($cmd_letter, $my_arg) = $cmd =~ /\A([aAbBeEhilLMoOPvwW]\b|[<>\{]{1,2})\s*(.*)/so) { - cmd_wrapper( $cmd_letter, $my_arg, $line ); - next CMD; - } + $obj->_handle_cmd_wrapper_commands; =head4 C<y> - List lexicals in higher scope @@ -3945,6 +3942,18 @@ sub _handle_q_command { return; } +sub _handle_cmd_wrapper_commands { + my $self = shift; + + # All of these commands were remapped in perl 5.8.0; + # we send them off to the secondary dispatcher (see below). + if (my ($cmd_letter, $my_arg) = $DB::cmd =~ /\A([aAbBeEhilLMoOPvwW]\b|[<>\{]{1,2})\s*(.*)/so) { + DB::cmd_wrapper( $cmd_letter, $my_arg, $line ); + next CMD; + } + + return; +} package DB; # The following code may be executed now: |