use Tie::File; tie my @array, 'Tie::File', 'test.data' or die $!; for my $index (0 .. $#array) { unshift @array, splice(@array, $index, 1) if $array[$index] =~ /33 +3/; } untie @array;
perl -le "print+unpack'N',pack'B32','00000000000000000000001010100010'"
In reply to Re: Swapping a record in a File
by rob_au
in thread Swaping a record in a File
by ganeshm69
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |