in reply to Re: Weird undefined variable warning
in thread Weird undefined variable warning
I have no idea why the error refers to $_[2], perhaps you'd like to file a bug reportIt is a bug, but not relating to reporting an index of 2 rather 0. The undef error is actually occuring at the last branch of the if/else tree (hence the 2, which features on that line - probably a mistake in the OP's code), but the wrong line number is being reported (a well-known and longstanding class of bug, will probably be fixed for 5.12.)
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Weird undefined variable warning
by hipowls (Curate) on Jan 18, 2008 at 23:56 UTC |