I recently decided it was time to upgrade my Windows 64-bit version of ActivePerl from 5.10.1.1007 to 5.22.2.2203. I'm now getting a new error message when I try to "use" the collection of generally useful subroutines I keep in Plx.pm:
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.
This is testplx.pl in its entirety:
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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.