Help for this page

Select Code to Download


  1. or download this
        > i tried 
    
        > sub flip { $@_[0] = !($@_[0] };
    
  2. or download this
        sub flip { ${ $_[0] } = !${ $_[0] } }
    
  3. or download this
        use Tie::FlipFlop;
    
    ...
        print  $flipflop;      # Prints 'Red'.
        print  $flipflop;      # Prints 'Green'.
        print  $flipflop;      # Prints 'Red'.