Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: grep problems and file copying issues

by le (Friar)
on Jul 10, 2000 at 15:24 UTC ( [id://21773]=note: print w/replies, xml ) Need Help??


in reply to grep problems and file copying issues

This one should work:
open (TEST, "test.txt") or die $!; @array = <TEST>; for (grep /$seachstring/, @array) { print; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2025-02-07 15:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (94 votes). Check out past polls.