in reply to Debugger line numbering anomaly
DB<3> l 1-6 1 #!/bin/perl -w 2: use strict; 3==> $_ = shift // ''; # line 3 4: s{a([bc])} # 4 5 {d$1}g; # 5 6: print; # 6 DB<4>
You can't break at 5 though, because the multi-line statement starts at 4.
Semicolons matter!
Please try recreating the file and test again.
$ cat db_tst.pl #!/bin/perl -w use strict; $_ = shift // ''; # line 3 s{a([bc])} # 4 {d$1}g; # 5 print; # 6
Do you probably have a weird line ending (from windows?) after the shebang?
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Debugger line numbering anomaly
by lzipin (Acolyte) on Dec 24, 2019 at 19:22 UTC | |
by LanX (Saint) on Dec 24, 2019 at 20:03 UTC | |
by lzipin (Acolyte) on Dec 24, 2019 at 23:01 UTC | |
by LanX (Saint) on Dec 25, 2019 at 00:26 UTC | |
by lzipin (Acolyte) on Dec 25, 2019 at 02:03 UTC | |
|