my %hash; for (qw(first second first third second fourth)) { exists $hash{$_} or $hash{$_} = keys %hash; # Put stuff in like t +his } print "$_\n" for sort {$hash{$a} <=> $hash{$b}} keys %hash; # Get stuf +f out like this
In reply to Re: Testing for a string value within an array
by Roy Johnson
in thread Testing for a string value within an array
by perlMunger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |