Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Using a regex saved in an environment variable

by kcott (Archbishop)
on May 03, 2012 at 02:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://968610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-26 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found