#!/usr/bin/perl use warnings; use strict; my $file = shift || $0; my $pid = open(FH,"tac $file |") or die "$!\n"; my $count = 0; while (<FH>){ #do your line processing here print $count++ .' '. $_; }
In reply to Re: How to reverse a huge file in Perl?
by zentara
in thread How to reverse a huge file in Perl?
by MelaOS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |