in reply to Shifting the top line(s) of a file?
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;
|
|---|