Hi, thank you for the prompt reply. I have fixed the printf part. but it still wouldn't work correct.
[root@local]#cat test.pl #!/usr/bin/perl use strict; use warning; my $arg00=shift ( @ARGV ); my $arg01=shift ( @ARGV ); #printf $arg00+$arg01."\n"; printf( "%d", $arg00 & $arg01 ); [root@local]#./test.pl 33 224 <BR>22[root@local]#
It should return 32 but returns 22.
I cant figure out why this happens...
regards,
toro
In reply to Re^2: bit-wise operation
by Anonymous Monk
in thread bit-wise operation
by toro_the_third
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |