in reply to Problem with regex passed to a hash
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.
Read a book on Perl
Written a book on Perl
Contributed to the Perl source code
Debugged someone else's script
Played Perl Golf
Used regular expressions to save the day
Used Perl for a certain amount of time (please specify)
Invested a certain amount of man-hours in learning Perl (please estimate)
Visited at least x Perl related events
(Co)maintain at least x active (up-river) CPAN modules
Forgotten you were not Larry Wall
One can never truly know Perl
Results (355 votes). Check out past polls.