Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: accessing an anonymous array

by bart (Canon)
on Apr 13, 2020 at 10:06 UTC ( [id://11115442] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $r = ['a', 'b', 'c'];
    
  2. or download this
    my $r;
    {
        my @a = ('a', 'b', 'c');
        $r = \@a;
    }