Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: Issue destroying image using perl/TK

by lamprecht (Friar)
on Mar 23, 2011 at 19:11 UTC ( [id://895091]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Issue destroying image using perl/TK
in thread Issue destroying image using perl/TK

() make the left hand side a list. Arrays return their elements when evaluated in list context.

See also perldata :
Assignment is a little bit special in that it uses its left argument t +o determine the context for the right argument. Assignment to a scala +r evaluates the right-hand side in scalar context, while assignment t +o an array or hash evaluates the righthand side in list context. Assi +gnment to a list (or slice, which is just a list anyway) also evaluat +es the righthand side in list context.

Cheers, Christoph

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2026-04-18 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.