in reply to Re: conditional statements in list constructors
in thread conditional statements in list constructors
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: conditional statements in list constructors
by kcott (Archbishop) on Mar 27, 2014 at 18:44 UTC |
In Section
Seekers of Perl Wisdom