in reply to Getting the value out a hash
I think what you want is the following:
foreach my $word (sort keys %tag) { my $fsize = $tag{$word}; printf "<style=\"font-size:%dpx;\">%s\n", int($fsize), $word; }
PS: I would strongly recommend the use of:
use strict; use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Getting the value out a hash
by Anonymous Monk on May 01, 2008 at 15:41 UTC |