perl -e ' sub dom { $_[0]=2;} $x=1; dom($x); print $x,"\n";' #prints 2
Although it is not best practice to do so you can change parameters of subroutines
In reply to Re^2: Bit operation
by jethro
in thread Bit operation
by toren
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |