Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Strictly nested sub warnings

by ikegami (Pope)
on Oct 06, 2010 at 04:42 UTC ( #863720=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Strictly nested sub warnings
in thread Strictly nested sub warnings

Especially if you're joining lots of vars with short strings, concatenation can leave you drowning in symbols.

Replies are listed 'Best First'.
Re^4: Strictly nested sub warnings
by FloydATC (Chaplain) on Oct 06, 2010 at 05:04 UTC
    For short variables I agree 100%.

    For more complex variables, I tend to go back to concatenation to make sure I get what I want.

    print "Guess what you get: $hashref->{$lookup1[$i]}->{$lookup2[$i]}\n" +;

    Also, with syntax highlighting, punctuation actually makes the code more readable than interpolation IMO.

    -- Time flies when you don't know what you're doing

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-07-25 21:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (229 votes). Check out past polls.