Hello Raj,
On Thu, 14 Apr 2016 03:52:56 +0000
Raj Barath <[email protected]> wrote:
> Hello Kenneth,
>
> Check this out:
>
> use v5.22;
> use Data::Dumper;
>
> my $VAR1;
>
> $VAR1 = [
> bless( {
> 'Id' => [
> '01tC0000003udXAIAY',
> '01tC0000003udXAIAY'
> ],
> 'type' => 'Product2'
> }, 'sObject' )
> ];
>
>
> say @{ %{ @{$VAR1}[0]}{'Id'}}[0];
> say @{ %{ @{$VAR1}[0]}{'Id'}}[1];
> say ${ @{$VAR1}[0]}{'type'};
>
What the hell is this code doing? It looks absolutely horrifying. See for
example:
http://perl-begin.org/tutorials/bad-elements/#at-array-for-subscripting
Please don't encourage such bad practices!
Regards,
Shlomi Fish
>
> __Output__
> perl test1.pl<http://test1.pl>
> 01tC0000003udXAIAY
> 01tC0000003udXAIAY
> Product2
>
>
> Thanks,
> Raj
>
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/