in reply to
Problem with regex passed to a hash
did you try doublequotes instead of singlequotes?
Thanks very much! It worked.
It looks like with single quotes I passing the regex as is, with no variable interpolation.
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.
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (90 votes),