dhannotte has asked for the wisdom of the Perl Monks concerning the following question:
This is testplx.pl in its entirety:E:\!!!dh()testplx Can't use 'defined(@array)' (Maybe you should just omit the defined()? +) at (#2) line 2842. Compilation failed in require at C:\!dh\DH\COM\SRC\testplx.pl line 4. BEGIN failed--compilation aborted at C:\!dh\DH\COM\SRC\testplx.pl line + 4.
use Carp; $SIG{__WARN__} = \&carp; $SIG{__DIE__} = \&confess; use Plx;
Line 2842 of Plx.pm is: my ($err_num, $err_txt);
There are 101 occurences of the string "defined" in 98 lines of Plx.pm.
1) Why isn't Carp identifying the correct line? 2) Besides going through 101 occurences, how can I find where (and WHAT) this error really is? Thanks, everybody!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: New error message in ActivePerl 5.22
by dave_the_m (Monsignor) on Jan 16, 2017 at 16:31 UTC | |
|
Re: New error message in ActivePerl 5.22
by stevieb (Canon) on Jan 16, 2017 at 14:49 UTC | |
|
Re: New error message in ActivePerl 5.22
by kcott (Archbishop) on Jan 17, 2017 at 00:11 UTC | |
by dhannotte (Acolyte) on Dec 25, 2017 at 16:52 UTC | |
by soonix (Chancellor) on Dec 25, 2017 at 19:57 UTC | |
by dhannotte (Acolyte) on Dec 29, 2017 at 17:39 UTC | |
by soonix (Chancellor) on Dec 29, 2017 at 22:05 UTC | |
by Anonymous Monk on Dec 25, 2017 at 20:44 UTC | |
by soonix (Chancellor) on Dec 26, 2017 at 18:51 UTC |