in reply to Dereferencing undef as an array: Bug or WAD?
I would say it is being used as an rvalue?C:\test>perl -Mstrict -wle" my $r = undef; my @x = map{ $_ } @{ $r }"
DB<25> use strict; my @a = 0..5; my @b = map { $_ = $_*$_ } @a; print + "@a\n@b" 0 1 4 9 16 25 0 1 4 9 16 25
Many Thanks
Casiano
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dereferencing undef as an array: Bug or WAD?
by BrowserUk (Patriarch) on Jun 04, 2008 at 14:01 UTC | |
by ChemBoy (Priest) on Jun 04, 2008 at 15:06 UTC |