Support wrote:
>
> I am trying to understand the logic of this code, and am finding it hard
> to find any more info on it, since I can't quite grip it.
perldoc perlref
perldoc perldsc
> Could someone explain the flow and/meaning behind it?
> I am specifically referring to the 'pointers' (->) and what they define.
> I can't find these in any of my books.
>
> push @{$xcp_request->{attributes}->{nameserver_list}
$xcp_request is a reference to a hash. The value of
$xcp_request->{attributes} is a reference to a hash. The value of
$xcp_request->{attributes}->{nameserver_list} is a reference to an
array.
> or this
>
> $xcp_request->{attributes}->{contact_set}->{$contact_type}->{$contact_ke
> y} = $in{$key};
Same thing only more deeply nested. You can use the Data::Dumper module
to display the contents.
$ perl -e'
use Data::Dumper;
$x->{a}->{b}->{c} = 1;
$x->{a}->{b}->{d} = 2;
$x->{a}->{e}->{c} = 3;
$x->{a}->{e}->{d} = 4;
print Dumper $x
'
$VAR1 = {
'a' => {
'e' => {
'c' => 3,
'd' => 4
},
'b' => {
'c' => 1,
'd' => 2
}
}
};
> Scott Lutz
> Pacific Online Support
> Phone: 604.638.6010
> Fax: 604.638.6020
^^^
Another Vancouverite I see! :-)
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]