Hello Raj,

On Thu, 14 Apr 2016 03:52:56 +0000
Raj Barath <barat...@outlook.com> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to