my $ref = $LoL[$n]; my @ary = @{$LoL[$n]}; $ref->[0] = "Foo"; # Modifies @LoL directly $ary[0] = "Foo"; # Only modifies @ary copy foreach (@$ref) { ... } foreach (@ary) { ... }
In reply to Re: extracting a list from a lists of lists
by tadman
in thread extracting a list from a lists of lists
by tachekent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |