if($data_pair->{key} eq 'correct') { @correct = $data_pair->{value}; # overwrite @correct push @correct,$data_pair->{value}; # goes to the end of @correct unshift @correct,$data_pair->{value}; # goes to the front of @correct }
In reply to Re: Array values are overwritten
by Anonymous Monk
in thread Array values are overwritten
by gem555
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |