Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: scoping problem?

by bliz (Acolyte)
on Dec 06, 2011 at 18:57 UTC ( #942079=note: print w/ replies, xml ) Need Help??


in reply to scoping problem?

Not that it matters much for this example, but any reason for the matching versus just a comparison?

if ("agag" =~ m/($username)/){
vs
if ("agag" eq $username){
bliz


Comment on Re: scoping problem?
Select or Download Code
Re^2: scoping problem?
by rocroc (Initiate) on Dec 06, 2011 at 20:28 UTC
    because in the "real" script, I'm looking for filenames in a directory that contain the username, but have other stuff in them as well.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942079]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-12-28 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls