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.
In reply to Re^2: Popping from method that returns a list in one line
by BillKSmith
in thread Popping from method that returns a list in one line
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |