Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Line by Line file processing

by siva kumar (Pilgrim)
on May 04, 2007 at 05:34 UTC ( [id://613518]=note: print w/replies, xml ) Need Help??


in reply to Line by Line file processing

Open the MASTER file
open(FH,"masterfile.txt") or die("Can't open the file : $!");
Read master file contents and put it array
@masterContents = <FH>;
Read only the CHILD file details from master file content
@childDetail = @masterContents[-3 .. -1 ];
childDetail array will contain the last 3 lines of child details. Then Apply the programming logic.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://613518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-24 17:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found