Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: "if" in a my declaration statement causes problem

by Siddartha (Curate)
on Feb 20, 2006 at 13:30 UTC ( #531400=note: print w/ replies, xml ) Need Help??


in reply to "if" in a my declaration statement causes problem

Rather do this:

my $x; $x = $y if ( <some condition> );
Otherwise, post a bit more code. What do you do with $x after that?


Comment on Re: "if" in a my declaration statement causes problem
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2014-09-16 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (42 votes), past polls