Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^3: Problem with regex passed to a hash

by LanX (Bishop)
on Oct 02, 2012 at 09:30 UTC ( #996826=note: print w/replies, xml ) Need Help??

in reply to Re^2: Problem with regex passed to a hash
in thread Problem with regex passed to a hash

> 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996826]
[Perl300]: I see DBI and DBD::Oracle are already installed on my Linux box where I am coding but having hard time connecting to the remote Oracle DB

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-10-20 20:30 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (267 votes). Check out past polls.