What does the underscore exactly do, when using _var?
Example:
package Person;
use Carp;
our $AUTOLOAD; # it's a package global
my %fields = (
name => undef,
age => undef,
peers => undef,
);
sub new {
my $that = shift;
my $class = ref($that) || $that;
my $self = {
_permitted => \%fields,
%fields,
};
bless $self, $class;
return $self;
}
Look for the:
_permitted => \%fields,
I know it has something to do with "for internal use only". But I need some
better explainment. Thanks in advance.
Sincerly,
Bob Erinkveld
(Webmaster Insane Hosts)
www.insane-hosts.net
_________________________________________________________________
Direct chatten met je vrienden met MSN Messenger http://messenger.msn.nl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: _ (underscore) in keyname in hash Mystik Gotan
- Re: _ (underscore) in keyname in hash Paul Johnson