Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^4: The Emperor's New Clothes

by shmem (Chancellor)
on Jan 26, 2009 at 23:51 UTC ( [id://739073]=note: print w/replies, xml ) Need Help??


in reply to Re^3: The Emperor's New Clothes
in thread The Emperor's New Clothes

even when the primary, and often only, purpose is to effect a side-effect.

Yes. From the docs (perlsyn):

The only kind of simple statement is an expression evaluated for its side effects.

So true. Take "Hello, world!". The computed effect (1 upon success) is dropped, an to have that silly greeting on the terminal - is the side-effect.

I am here as and for my side-effects...

Log In?
Username:
Password:

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

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

    No recent polls found