How do I extract the first 2 elements of an array and add to end
__DATA__
1234
5678
1000
1233
$file="abc.txt"; open (DAT, "<$file")|| die("Cannot Open File"); @array = <DAT>; close (DAT);
The output should be:
print @newarray
123412
567856
100010
123312
In reply to Array manipulation by PetreAdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |