Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Elthek (2737)

Elthek
  (email not shown publicly)

Journal of Elthek (2737)

Thursday May 23, 2002
09:08 AM

When JAPHs Attack.

[ #5174 ]

I posted this to london.pm yesterday:

chris@lexis:~$ perl -le'@a=($^O eq 'darwin')?qw(100453 81289 9159):qw
(23152 19246 2040);while(<>){chomp;push @b,$_ if grep {$.==$_}@a}push
@b,$^X;print ucfirst join(" ",@b[2,0,3,1]).","'</usr/share/dict/words

It seems to be even less portable than I'd thought; it works on OS X and all versions of Redhat and Mandrake that I can find, but.. nothing else.

Oops. Next up, ripping the text straight from perlfaq1.. ;-)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.