Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Earindil's scratchpad

by Earindil (Beadle)
on Jun 01, 2004 at 18:43 UTC ( [id://358378]=scratchpad: print w/replies, xml ) Need Help??

my @data = split; s!$data[3]!encrypt($data[3])!eg if ($data[3] ne '-'); s!=(\d{9,10}|\D\d{8}|\d{4}\-\d{4}|\D\d{4}\-\d{4})!'='.encrypt($1)!eg; print OUTPUT $_."\n";
sub encrypt { my $key = shift; if ($Translate{$key}) { $key =~ s|\Q$key\E|\#\#\#$Translate{$key}\#\#\#|g; return $key; } my $value; my @table = ('0'..'9','a'..'z','A'..'Z'); while ($Used{$value}) { foreach $i (1..9) { $value .= $table[rand($#table+1)]; } } $Used{$value}++; $Translate{$key}=$value; open TABLE, ">>$dir/translate.dat"; print TABLE "$key\t$value\n"; close TABLE; $key =~ s|\Q$key\E|\#\#\#$value\#\#\#|g; return $key; }
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-25 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found