Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: grep return the entire file not the line which matches

by FunkyMonk (Chancellor)
on Aug 03, 2011 at 15:41 UTC ( [id://918311]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(ENG,"<en_1000") or die $!;
    my @eng_dat=<ENG>;
    ...
    my $en="EN-1000-0003-3";
    my @data= grep /$en/,@eng_dat;
    print @data;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-03-28 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found