in reply to array confusion
when you do for my $foo () $foo is aliased to the var. But when you assigned the scalars to a list they were copied so when you did @arr = ($foo,$baz,$bar); for(@arr){s/stuff/cling/;} you were actually affecting $arr[0],$arr[1],$arr[2] and so on.
|
---|
In Section
Seekers of Perl Wisdom