The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 06-05-2007
matrixmadhan matrixmadhan is offline
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,593
Code:
#! /opt/third-party/bin/perl

open(FILE, "<", "a");
@arr = <FILE>;
close(FILE);

for( my $i = $#arr; $i >= 0; $i-- ) {
  print "$arr[$i]" ;
}

exit 0
Reply With Quote