in reply to Re: Writing files
in thread Writing files

I think it would be better if I examine all the lines and get the one I wanted. But they are all differeent. But how? Thankx

Replies are listed 'Best First'.
RE: RE: Re: Writing files
by jlistf (Monk) on Jul 28, 2000 at 22:01 UTC
    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?