Just for another style!while (<>) { /^(.+)\:/ ; # Capture Server Name $hash{$1} = $_ ; # Create Hash Key if found } foreach $server (sort keys %hash) { print "$hash{$server}\n" ; }
Have fun,
mslattery
In reply to Re: How do I get the last occurrence of a word (or words) in a file?
by mslattery
in thread How do I get the last occurrence of a word (or words) in a file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |