in reply to weird files
Take it in steps.
#! perl -slw use strict; my $data = do { local $/; <DATA>; }; #! slurp the file into a scalar. $data =~ s/([^\n])(\n)([^\n])/$1$3/g; #! join the paras into lines $data =~ s/\n+/\n/g; #! reduce multiple \n's to 1 my @data = split/\n/, $data; #! and split. print for @data; __DATA__ 1 2 3 1 1 6 4 8 5 6 9 0 8 89 5 0 0 8 7 8 4 6 6 3 79 0 588 7 9 4 3 9 2 9 9 23 8 0 2 8 98 0 9 7 8 0 0
Gives
C:\test>216446 1 2 3 11 6 4 8 5 6 9 08 89 5 00 8 7 8 4 66 3 79 0 588 7 9 43 9 2 9 9 23 8 02 8 98 0 9 7 8 00
Okay you lot, get your wings on the left, halos on the right. It's one size fits all, and "No!", you can't have a different color.
Pick up your cloud down the end and "Yes" if you get allocated a grey one they are a bit damp under foot, but someone has to get them.
Get used to the wings fast cos its an 8 hour day...unless the Govenor calls for a cyclone or hurricane, in which case 16 hour shifts are mandatory.
Just be grateful that you arrived just as the tornado season finished. Them buggers are real work.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: weird files
by Anonymous Monk on Nov 29, 2002 at 09:39 UTC |