Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
knarf
a guest
Mar 1st, 2009
379
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Perl
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
open
$file
,
'test.txt'
;
map
{
$freq
{
lc
$_
}
++
}
split
for
<
$file
>;
for
$word
(
sort
{
$freq
{
$b
}
<=>
$freq
{
$a
}
}
keys
%freq
)
{
print
"$word: $freq{$word}
\n
"
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
5 hours ago | 88.05 KB
Untitled
7 hours ago | 58.79 KB
z66is_archive.zip.txt
14 hours ago | 1.05 MB
Untitled
16 hours ago | 71.19 KB
Untitled
16 hours ago | 64.82 KB
Untitled
16 hours ago | 88.55 KB
Untitled
16 hours ago | 65.48 KB
Untitled
17 hours ago | 95.14 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!