
jbs
Deleted
Jun 10, 2000, 9:10 PM
Post #2 of 3
(763 views)
|
Re: reading text file as data (orthing like that)
[In reply to]
|
Can't Post
|
|
You can do this! open(FILE, "yourfile.txt") | | die "Error "; while(<FILE> ){ if($_ eq "kubrick"){ $K114=$_; chop($K114);#get rid of newline char } if($_ eq "www.asdf.com"){ $asdf=$_; chop($asdf); print "$K114 $asdf"; } close(FILE); Tell me if that is what you meant, but this is what I think you do.. This should work.
|