Fix pop syntax error for older perls