my $index = shift || -1; #### my $index = shift; $index = -1 unless defined $index;