Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: 1 0\/\/Nz U DoodZ!

by japhy (Canon)
on Feb 18, 2001 at 11:51 UTC ( [id://59234]=note: print w/replies, xml ) Need Help??

in reply to 1 0\/\/Nz U DoodZ!

Some comments on the latter half of translations:
$data =~ s/ss^\b/ran("55","\$\$","\$\$")/gie;
That ^ makes no sense.
$data =~ s/e/3/gi; $data =~ s/t/7/gi; $data =~ s/(l|i)/1/gi; $data =~ s/a/4/gi; $data =~ s/b/8/gi; $data =~ s/g/9/gi; $data =~ s/o/0/gi;
Ewww. This would be so much better as a tr///.
$data =~ tr/eEtTlLiIaAbBgGoO/3377111144889900/;

japhy -- Perl and Regex Hacker

Replies are listed 'Best First'.
Re: Re: 1 0\/\/Nz U DoodZ!
by howard40 (Beadle) on Feb 28, 2001 at 03:00 UTC
    $data =~ s/ss^\b/ran("55","\$\$","\$\$")/gie;
    That ^ makes no sense.

    He's trying to make "$$" a more probable outcome than "55"... if you have a bag with one red hat and two black hats, and you pick one at random, chances are better for picking a black hat than a red one...
    I kinda like the way he did that... it's strangely creative :)

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59234]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-13 09:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found