You can increment letters just like you increment numbers.
For example:
$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" to $A.
for(0..285074){$A++;} # increment $A 285,074 times
print"$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 enlighten me?
#!/usr/bin/perl
my $A="a";for(0..285074){$A++;}print"$A\n";
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]