I'm learing about XML:arser and looking at an example snippet of code in the Wrox book "Professional Perl development".
There is a snippet of code which does a funny syntax thing with curly-brackets and I don't understand it:
sub Init {
my $self = shift;
$self->{__myData} = {
invoice_number => "",
customer_id => "",
address => "",
name => "",
#.... and more code
};
#...and more code
}
Specifically, this is the part I'm not understanding:
$self->{__myData}
??? What is {__myData} ??
Thanks for any help here.
Bryan
There is a snippet of code which does a funny syntax thing with curly-brackets and I don't understand it:
sub Init {
my $self = shift;
$self->{__myData} = {
invoice_number => "",
customer_id => "",
address => "",
name => "",
#.... and more code
};
#...and more code
}
Specifically, this is the part I'm not understanding:
$self->{__myData}
??? What is {__myData} ??
Thanks for any help here.
Bryan