Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: set context for method's return values

by LanX (Saint)
on Jan 25, 2022 at 10:20 UTC ( [id://11140843]=note: print w/replies, xml ) Need Help??


in reply to Re: set context for method's return values
in thread set context for method's return values

> Technically using () we are creating a list,

Sorry that's not fully correct, ()[] resp. (EXPR)[SLICE] is "creating a list"

(EXPR) alone affects only precedence, no list context is propagated.

for completeness:

  • () is an empty list
  • (EXPR)= is a list assignment

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^3: set context for method's return values
by rsFalse (Chaplain) on Jan 29, 2022 at 11:59 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 18:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found