As already indicated by beable, here is good solution:
Viola! The top line will disappear.#!/usr/bin/perl -w ############################################### use strict; use Tie::File; my @ry=(); tie @ry,"Tie::File","file2use.txt" or die $!; my $line = shift @ry; untie @ry;
In reply to Re: Shifting the top line(s) of a file?
by blue_cowdawg
in thread Shifting the top line(s) of a file?
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |