while (my $item = shift @toprocess) #### while (my ($item) = shift @toprocess) #### while (@toprocess) { my $item = shift @toprocess;