in reply to Manipulating an encrypted file
I suspect that you want something like:
my ($in,$data); while( sysread(IN,$in,length($enckey)) ) { $data .= $in^$enckey; } my @recs = map{ [ split /\t/ ] }split /\n/, $data; for my $rec_ref(@recs) { printf "serv %s\nuser %s\npass %s\n", $rec_ref->[0], $rec_ref->[1], $rec_ref->[2]; # NB @$rec_ref i +s equiv }
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Manipulating an encrypted file
by Anonymous Monk on Oct 28, 2004 at 10:56 UTC |