Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: RE: Re: Writing files

by jlistf (Monk)
on Jul 28, 2000 at 22:01 UTC ( [id://24939]=note: print w/replies, xml ) Need Help??


in reply to RE: Re: Writing files
in thread Writing files

two words: regular expressions.
two more words: not necessarily.
open FILE, "file.txt" or die "can't do : $!\n"; while (<FILE>) { # do some test on $_ # if it's a string you want, keep it } close FILE;
those tests are most likely going to be some sort of regular expression. but it depends on what you are looking for. what lines do you want to keep? how do you know you want to keep them?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-26 02:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found