On Fri, Jan 01, 2010 at 05:42:57PM -0500, Eric Brine wrote:
> I agree that "list assignment" is correct, but why does the warning say line
> 2?
Because perl currently only records line numbers per statement, not per
op; e.g.:
$ cat -n /tmp/p
1 #!/usr/bin/perl -w
2
3 my $x =
4 1
5 + 2
6 + 3
7 + 4
8 + undef;
9
$ perl /tmp/p
Use of uninitialized value in addition (+) at /tmp/p line 3.
$
--
O Unicef Clearasil!
Gibberish and Drivel!
-- "Bored of the Rings"
Thread Previous
|
Thread Next