in reply to Re^2: Perl's __LINE__ off by 2
in thread Perl's __LINE__ off by 2
4 5 6 $VAR1 = [ "use v5.12; \n", "use warnings;\n", "use Data::Dumper;\n", "say __LINE__;\n", "say __LINE__;\n", "say __LINE__;\n", "\n", "\n", "seek DATA,0,0;\n", "my \@lines = <DATA>;\n", "\$Data::Dumper::Useqq=1;\n", "say Dumper \\\@lines;\n", "\n", "__DATA__\n" ];
Additionally one could run the file in the debugger and use the command 'v' or inspect @DB::dbline
Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl's __LINE__ off by 2
by ysth (Canon) on Aug 26, 2025 at 16:22 UTC | |
by LanX (Saint) on Aug 26, 2025 at 16:43 UTC |