Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How to read the regular expression from another file?

by Laurent_R (Canon)
on May 07, 2015 at 17:46 UTC ( [id://1126019]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<F1>) {
        open (F3, "<new3.txt") or die;
    ...
        print F2 if (/$lines/);
        close (F3);
    }
    
  2. or download this
    my $lines = <F3>;
    
  3. or download this
        open my $SEARCH_ITEMS, "<", "new3.txt") or die "Could not open new
    +3.txt $!";;
        my @lines = <$SEARCH_ITEMS>;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1126019]
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: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found