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

Re^5: Whats its bad here?

by Corion (Patriarch)
on Sep 25, 2009 at 13:07 UTC ( [id://797497]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Whats its bad here?
in thread Whats its bad here?

That's what use strict; is for. It forces you to predeclare your variable names, so it can catch mistyped variable names. If you predeclare $vTemp2 like this:

use strict; my $vTemp2; ...

your program will work and you get the benefit of Perl alerting you when you mistype the name.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found