Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Help with Reading in of a flat file...

by FoxtrotUniform (Prior)
on Jan 19, 2002 at 01:24 UTC ( [id://139952]=note: print w/replies, xml ) Need Help??


in reply to Help with Reading in of a flat file...

Note: untested

{ local $/ = "TTY"; open FILE, "<", $filename or die "open $filename: $!\n"; my @ttys = <FILE>; my @data = (); foreach (@ttys) { push @data, $_; last if /EOS/; } close FILE or die "close $filename: $!\n"; }
--
:wq

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found