Help for this page

Select Code to Download


  1. or download this
    sub deref { my $ref = shift; return $$ref; }
    
  2. or download this
    sub deref { ${$_[0]} }
    
  3. or download this
    sub deref { ${shift} }
    
  4. or download this
    sub deref { ${shift@_} } # too much explicit
    sub deref { ${+shift} }  # supersticious? cfr. Roger
    sub deref { ${shift;} }