Re: interesting JAPH, how does this work?

2002-01-11 Thread zentara
On 10 Jan 2002 18:10:20 -0500, [EMAIL PROTECTED] (Michael R. Wolf) wrote: [EMAIL PROTECTED] (Zentara) writes: I get it, so perl equals 285075 in a base24 number system, with the alphabet as it's units. 24? What's 24? There are _26_ letters in the alphabet! Or was 24 a base _11_ number?

interesting JAPH, how does this work?

2002-01-10 Thread zentara
Hi, I saw this on perlmonks.org. I can't understand how it works. Can anyone enlighten me? #!/usr/bin/perl my $A=a; for(0..285074){$A++;}print$A\n;

RE: interesting JAPH, how does this work?

2002-01-10 Thread Hanson, Robert
$A\n; # prints the new value Rob -Original Message- From: zentara [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 12:01 PM To: [EMAIL PROTECTED] Subject: interesting JAPH, how does this work? Hi, I saw this on perlmonks.org. I can't understand how it works. Can anyone

Re: interesting JAPH, how does this work?

2002-01-10 Thread Luke Bakken
C:\usersperl -e $A=qq(a);for(0..285074){$A++}print qq($A\n); perl C:\usersperl -e $A=qq(a);for(0..28){$A++}print qq($A\n); ad C:\usersperl -e $A=qq(a);for(0..2){$A++}print qq($A\n); d C:\usersperl -e $A=qq(a);for(0..1){$A++}print qq($A\n); c C:\usersperl -e $A=qq(a);for(0){$A++}print

RE: interesting JAPH, how does this work?

2002-01-10 Thread William.Ampeh
Try this: #!/opt/local/bin/perl #!/usr/bin/perl my $A=a; for(0..285074){ $A++; print $A:; } print\n\n$A\n; -- This reemphasizes a mail I just read from someone on this list about the need to write clearly readable codes. __

Re: interesting JAPH, how does this work?

2002-01-10 Thread Jon Molin
[EMAIL PROTECTED] wrote: Try this: #!/opt/local/bin/perl #!/usr/bin/perl my $A=a; for(0..285074){ $A++; print $A:; perhaps you should consider NOT printing that 285074 times? would kinda flood the term :) } print\n\n$A\n; --

RE: interesting JAPH, how does this work?

2002-01-10 Thread Stout, Joel R
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 9:47 AM To: Hanson, Robert Cc: [EMAIL PROTECTED]; 'zentara' Subject: RE: interesting JAPH, how does this work? Try this: #!/opt/local/bin/perl #!/usr/bin/perl my $A=a; for(0..285074

Re: interesting JAPH, how does this work?

2002-01-10 Thread zentara
On Thu, 10 Jan 2002 12:11:53 -0500, [EMAIL PROTECTED] (Robert Hanson) wrote: You can increment letters just like you increment numbers. $x = a; $x++; print $x; # prints b And the letter z incremented becomes aa. $x = z; $x++; print $x; # prints aa So here is the script... $A = a; # assign a

RE: interesting JAPH, how does this work?

2002-01-10 Thread Hanson, Robert
own addition and subtraction routines so that $a + $b added letters instead of number (or both letters and numbers). Rob -Original Message- From: zentara [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: Re: interesting JAPH, how does

Re: interesting JAPH, how does this work?

2002-01-10 Thread Randal L. Schwartz
Zentara == Zentara [EMAIL PROTECTED] writes: Zentara I get it, so perl equals 285075 in a base24 number system, Zentara with the alphabet as it's units. There are only 24 letters in your alphabet? :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL

Re: interesting JAPH, how does this work?

2002-01-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (Zentara) writes: I get it, so perl equals 285075 in a base24 number system, with the alphabet as it's units. 24? What's 24? There are _26_ letters in the alphabet! Or was 24 a base _11_ number? And if so, what extra digit were you using other than your fingers? :-)