Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Use of uninitialized value $_ in string

by juanpablo (Novice)
on Apr 05, 2014 at 14:06 UTC ( #1081243=note: print w/replies, xml ) Need Help??


in reply to Re: Use of uninitialized value $_ in string
in thread Use of uninitialized value $_ in string

Hi toolic!

Thanks for the reply! I appreciate it.

Yes, you're right. I've just realized that that variable shouldn't be declared on top. I've removed it already and put it back in foreach body. Also, the errors were gone but I'm not sure if that's the right thing to do, I mean the declaration of variables again in the sub part. I'm checking the coping with scoping thread now. :)

Cheers,

JP

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2023-02-04 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (31 votes). Check out past polls.

    Notices?