develooper Front page | perl.beginners | Postings from April 2002

Increment a Variable

From:
Michael Stearman
Date:
April 1, 2002 12:51
Subject:
Increment a Variable
Message ID:
F107voHFHcmtJmHIHvX000038c4@hotmail.com
Hi,

I was wondering if anyone knew how to increment a variable when the variable 
is a letter.  For example

$x="A";
$x++;

doesn't work.  I'm trying to get $x="B";

Thanks,
Mike.



_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About