CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [Zhris] Have to exclude the first and last line of the file : help me: Edit Log



vishwakar
Novice

Dec 24, 2010, 12:01 PM


Views: 4004
Re: [Zhris] Have to exclude the first and last line of the file : help me

there will be some hundred number of files in which i
have to slect latest thing with time stamp..
so i took all of the files in to an array and reverse sorted
them and got the file with latest stamp..
that is the file $list[0] which look like this
this is the file which has data inside it and has to be processed

Code
HEADER|234 
421|ADD|345
422|INSERT|567
421|INSERT|588
445|MULTIPLY|596
TAILER|234

i have to read and execute like this

Code
421|ADD|345 
422|INSERT|567
421|INSERT|588
445|MULTIPLY|596


ya zhris i tried to make u clear..
please correct me if was wrong any where


(This post was edited by vishwakar on Dec 24, 2010, 12:09 PM)


Edit Log:
Post edited by vishwakar (Novice) on Dec 24, 2010, 12:09 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives