in reply to I need to sort out some values and get only the highest generated by my perl script
Why it's stupid to `use a variable as a variable name' part 1 2 3
One you clean up your program to eliminate all that repetitive scripting, it'll be easier to answer your own question.my %count; for my $letter ( 'A' .. 'Z', '_', '.' ){ $count{$letter} = () = $site =~ m/\Q$letter/g; }
update: noticed '_' and '.' were in the mix and updated example accordingly (added \Q).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I need to sort out some values and get only the highest generated by my perl script
by Prior Nacre V (Hermit) on Oct 29, 2004 at 09:47 UTC |