Subject: | Fails to debug script whit an -l on shebang line |
When debugging a script which uses -l on the shebang line ebug complains
about use of uninitialized value in concatenation at line 52:
makholm@iLinux:/tmp$ ebug broken.pl
* Welcome to Devel::ebug 0.48
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 2.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 2.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 2.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 2.
(#):
ebug: s
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 4.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 4.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 4.
Use of uninitialized value in concatenation (.) or string at
/usr/share/perl5/Devel/ebug/Console.pm line 52, <GEN1> line 4.
(#):
ebug:
With the -l flag ebug works fine.
Subject: | broken.pl |
#!/usr/bin/perl -l
my @a = (3, 6, 2, 19, 5);
for $n (sort { $a <=> $b } @a) {
print $n;
}