|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^3: Problem with regex passed to a hashby LanX (Monsignor) |
| on Oct 02, 2012 at 09:30 UTC ( #996826=note: print w/ replies, xml ) | Need Help?? |
|
> It looks like with single quotes I passing the regex as is not exactly. your passing the variable's symbol. Seems like that module does an eval on the string you pass. So passing in singelquotes means that eval '/$username/' fails because $username is unknown in the module's namespace.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||