Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: reduce line of code

by lima1 (Curate)
on Jul 14, 2009 at 08:52 UTC ( #779836=note: print w/ replies, xml ) Need Help??


in reply to Re^2: reduce line of code
in thread reduce line of code

I guess this is what Sun751 meant. His non-working example scopes the $cmd variable to the if ... else blocks.


Comment on Re^3: reduce line of code
Re^4: reduce line of code
by jeanluca (Deacon) on Jul 14, 2009 at 09:26 UTC
    OT: just add
    use strict ; use warnings ;
    to your programs, witch would have detected your scoping problem!

    LuCa

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-12-22 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (121 votes), past polls