in reply to passing an array without a name to pop()

Refer the FAQ "What is the difference between a list and an array?" in perlfaq4. You are specifying a 'LIST', not an 'anonymous ARRAY'. The syntax in documentation pop shows that if pop takes an argument, it must be an 'ARRAY'. Contrast with sort which does accept a 'LIST'.
Bill
  • Comment on Re: passing an array without a name to pop()