in reply to Re: bit-wise operation
in thread bit-wise operation

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