Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: CGI throws in an extra character. Why?

by Petras (Friar)
on Dec 01, 2004 at 20:07 UTC ( #411548=note: print w/ replies, xml ) Need Help??


in reply to Re: CGI throws in an extra character. Why?
in thread CGI throws in an extra character. Why?

Just curious, then. I really don't know how to check, so I'll just ask (ah, ignorance and laziness....). Does  closedir execute if it is part of a  print statement? print ++$someVar; would execute the incriment even though it is part of a print statement. Are there any rules as to what executes as part of another statement and what doesn't?

Thanks,
-P


Comment on Re^2: CGI throws in an extra character. Why?
Select or Download Code
Re^3: CGI throws in an extra character. Why?
by Your Mother (Canon) on Dec 02, 2004 at 03:52 UTC

    I'm not a guru and I hope I don't misspeak but here's an offering: print is a list operator so it's always going to wait for everything to its right, w/i its precedence space, to finish. Perl is really great for its DWIMness in the sense that statements/subs/methods often act the way you'd expect or hope just from looking at them. The rules for that stuff is mostly just precedence (how strongly an operator or function wants to grab and act upon what's around it).

    Check out perlop for precedence info in all its gl?ory.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2014-07-14 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (256 votes), past polls