On Mon, Dec 10, 2001 at 08:12:42AM -0800, Lance wrote: > If I want to read through a text file and parse out the information in order > to sort or compare data how would I begin to tackle this task? > > I understand logically how I it would work just not sure how to do it in > perl. ---end quoted text---
open I, 'somefile.txt' or die "Cannot open somefile $!\n"; @_=<I>; # @_ now contains all the lines from somefile.txt # to change the record delimiter change $/ to the required value # the default is $/="\n"; -- Frank Booth - Consultant Parasol Solutions Limited. (www.parasolsolutions.com) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]