eWebProgrammer
prev prev
  Course navigation
    Using an array as a stack
Stack pop
Diagram of pop from the stack
Notice that the pop function returns the item removed as its value.
This allows you to assign it to a variable or use it in an expression:
$pic = pop @bestpix;
  Course navigation