Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Is it evaluated in scalar or list context?

by CountZero (Bishop)
on Jan 19, 2013 at 17:40 UTC ( #1014217=note: print w/ replies, xml ) Need Help??


in reply to Is it evaluated in scalar or list context?

Scalar context, of course.

The my ($var1, $var2, $var3, $var4); has no influence on any of the following lines. Actually context is irrelevant for that line since no assignment is done.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics


Comment on Re: Is it evaluated in scalar or list context?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2014-08-01 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (33 votes), past polls