XP is just a number | |
PerlMonks |
Re: Using a regex saved in an environment variableby JavaFan (Canon) |
on May 03, 2012 at 08:28 UTC ( [id://968674]=note: print w/replies, xml ) | Need Help?? |
Now I want to do the same thing except put the regular expression in an environment variable:But that's not a regexp; that's an expression. You can do the interpolation in the shell, so that Perl sees what you intent it to see: Here, $REX is exposed to the shell, which sees the above as:
In Section
Seekers of Perl Wisdom
|
|