Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by BillKSmith (Monsignor)
on Aug 29, 2019 at 16:03 UTC ( [id://11105251]=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

You cannot pop the return value of ->get_files because it is not an array.

For an explanation of why this makes a difference, see the FAQ:

perldoc -q "What is the difference between a list and an array"

The Synopsis section of the documentation pop specifies that it requires an array.

Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-25 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found