Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How do you use a variable value within a regular expression pattern properly? (updated)

by haukex (Abbot)
on Sep 11, 2017 at 11:43 UTC ( #1199084=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if( $string=~/ ^ $myvar REC: (.*) /x )
    
  2. or download this
    if( $string=~/ ^ \Q$myvar\E REC: (.*) /x )
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1199084]
help
Chatterbox?
[talexb]: 2001 sounds about right .. got myself a separate box just to run Linux on. Seriously clueless.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (12)
As of 2018-07-17 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (374 votes). Check out past polls.

    Notices?