Taking a reference to a list actually returns a list of references to each item in the original list. ... probably ... good ... to avoid ...:
$arrayref = \(...);
E.g.:
c:\@Work\Perl\monks>perl -wMstrict -le "my $not_really_an_arrayref = \('one', 'two', 'three'); print $$not_really_an_arrayref; " three
In reply to Re^2: conditional statements in list constructors
by AnomalousMonk
in thread conditional statements in list constructors
by Don Coyote
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |