Prints out:#!/usr/bin/perl sub plus { for (@_) {$_++} } my @foo=(1,2,3,4); plus(@foo); for(@foo) {print "$_\n"};
2 3 4 5
In reply to Re: Array value changing for some reason
by kschwab
in thread Array value changing for some reason
by Silt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |