in reply to Re: Perl Python Partial Polyglot
in thread Perl Python Partial Polyglot
Assuming the offending code looks something like this:
my $hashref = { .... }; my $keysCount = keys $hashref;
Then add a dereference:
my $keysCount = keys ${ $hashref };
Or just:
my $keysCount = keys $$hashref;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl Python Partial Polyglot
by kschwab (Vicar) on Nov 23, 2018 at 21:07 UTC | |
|
Re^3: Perl Python Partial Polyglot
by 1nickt (Canon) on Nov 24, 2018 at 14:48 UTC | |
by kschwab (Vicar) on Nov 24, 2018 at 15:00 UTC | |
by BrowserUk (Patriarch) on Nov 26, 2018 at 06:18 UTC | |
by 1nickt (Canon) on Nov 26, 2018 at 11:16 UTC | |
by BrowserUk (Patriarch) on Nov 26, 2018 at 15:58 UTC |