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