Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
knarf
a guest
Mar 1st, 2009
398
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
CSS | 45 min ago | 0.72 KB
Instant money using older Node
CSS | 46 min ago | 0.72 KB
Crypto Hack
CSS | 46 min ago | 0.72 KB
This month smells like money
CSS | 46 min ago | 0.72 KB
Addictol Out of Memory Crash
4 hours ago | 57.10 KB
ramdisk-cgdroot.fs/etc/rc
Bash | 8 hours ago | 3.46 KB
Boolean34
9 hours ago | 0.01 KB
new test
15 hours ago | 0.01 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!