Hello
I'm very new to perl - just starting :) And so rather theoretical question
How could i force perl to treat variable as number or text?
Very short example:
my $a = '94'; my $b = '98'; my $c = $a ^ $b; print "$c\n"; my $x = 94; my $y = 98; my $z = $a ^ $b; print "$z\n"; my $i = 94 ^ 98; print "$i\n";
and output is:
♀ ♀ 60
In reply to variable treatment by asthaonard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |