in reply to Setting break point for particular condition in the subroutine
It sounds like you want to insert the breakpoint at the if ($cmd =~ /INITIAL/i) line. Let's say that's line 123. Then, type:
b 123 $cmd =~ /INITIAL/iSetting it to the subroutine entry is problematic because $cmd isn't set yet (or at least isn't set to a member of @commands. In addition to that, simply using /INITIAL/i as your condition would be running that regexp on $_, not $cmd.
See perldebug for more info.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Setting break point for particular condition in the subroutine
by srlbharu (Acolyte) on Mar 07, 2013 at 09:04 UTC | |
by rjt (Curate) on Mar 07, 2013 at 10:43 UTC | |
by LanX (Saint) on Mar 07, 2013 at 10:57 UTC |