How are you going to determine at compile time whether $foo gets modified? Because if func changes its $_[0], the elements of @array get modified.chomp (my $module = shift); require $module or die; for my $foo (@array) { func($foo); }
In reply to Re^6: Changing array by changing $_?
by JavaFan
in thread Changing array by changing $_?
by johnvandam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |