Ing. Branislav Gerzo schrieb:

Elvis Cehajic [EC], on Saturday, June 18, 2005 at 19:11 (+0200) wrote:


EC> Like that?:

EC> use strict;
EC> use warnings;

EC> my $first = 'B';
EC> my $second = 'a';

EC> ($first, $second) = (uc($second) , lc($first));

EC> print $first, "\n";
EC> print $second, "\n";

sorry, I was not clear. I don;t know the case, so it have to work for:

ab
Ab
aB
AB

change characters order and keep case without $temp, it is possible ?
Either I'm stupid or you're still not clear or haven't even tried the example.. It works for all your examples and correctly prints out $first uppercase and $second lowercase.

Elvis

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to