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
In Section
Seekers of Perl Wisdom