Next | The Perl Hardware Store | DC.pm Version | 51 |
This slide is only here so that it will get onto the web site.
If $self is a blessed reference to a glob, then:
$self filehandle / dirhandle ${*$self} scalar @{*$self} array $#{*$self} array size *$self->[...] array element ${*$self}[...] array element @{*$self}[...] array slice %{*$self} hash *$self->{...} hash element ${*$self}{...} hash element %{*$self}{...} hash slice $self->method(...) call a method *$self->(...) call the function
The pattern here:
If $self is a globref, then {*$self} is a reference.
Next | Copyright © 2003 M. J. Dominus |