KW Perl Mongers Perl Modules: A Look Under the Hood #6

Using a Reference

You can get back the referent by prefixing the reference, optionally with curley braces, with the appropriate symbol:

      ${\$s}
      $$scalar_ref
      ${$scalar_ref}
      @{$array_ref}
      @$array_ref

<< Previous | Index | Next >> Copyright © 2004 Daniel Allen