Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
laziness, impatience, and hubris
 
PerlMonks  

Re: Using a regex saved in an environment variable

by kcott (Parson)
on May 03, 2012 at 02:33 UTC ( #968610=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ken@ganymede: ~/tmp
    $ cat pm_re2_file.txt
    ...
    
    ken@ganymede: ~/tmp
    $ 
    
  2. or download this
    ken@ganymede: ~/tmp
    $ RE1="/--Begin--/ && /--End--/" perl -00 -ne 'print if eval $ENV{RE1}
    +' pm_re2_file.txt
    ...
    
    ken@ganymede: ~/tmp
    $
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2013-06-18 05:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many continents have you visited?









    Results (595 votes), past polls