Help for this page

Select Code to Download


  1. or download this
      sub flip { ${$_[0]} = !${$_[0]} };
    
  2. or download this
      sub flip { $$_[0] = !($$_[0]) }
    
  3. or download this
      perl -w -e 'use strict; sub flip { $$_[0] = !($$_[0]) }; my $z=1; fl
    +ip(\$z); print "$z\n"'
      1