Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$myvar="one"; $string="oneREC:riugfryfgfyug";
if($string=~/^$myvarREC:(.*)/)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do you use a variable value within a regular expression pattern properly? (updated)
by haukex (Archbishop) on Sep 11, 2017 at 11:43 UTC | |
|
Re: How do you use a variable value within a regular expression pattern properly?
by 1nickt (Canon) on Sep 11, 2017 at 11:30 UTC | |
by Anonymous Monk on Sep 11, 2017 at 11:38 UTC |