Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Popping from method that returns a list in one line

by AnomalousMonk (Archbishop)
on Aug 29, 2019 at 00:13 UTC ( [id://11105206]=note: print w/replies, xml ) Need Help??


in reply to Re: Popping from method that returns a list in one line
in thread Popping from method that returns a list in one line

E.g.:

c:\@Work\Perl\monks>perl -wMstrict -le "sub foo { return qw(foo bar baz quux); } ;; my $o = bless \do {my $x}; ;; my $like_as_if_it_was_popped = ($o->foo)[-1]; print $like_as_if_it_was_popped; " quux


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-19 09:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found