Something like this can do:
use warnings; use strict; while(<DATA>){ chomp; print $_,substr ($_,0,2),$/; } __DATA__ 1234 5678 1000 1233
In reply to Re: Array manipulation
by 2teez
in thread Array manipulation
by PetreAdi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |