in reply to Re: Bit operation
in thread Bit operation
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Bit operation
by raybies (Chaplain) on Jan 12, 2011 at 16:15 UTC |