Created
February 27, 2017 15:44
-
-
Save lucs/dd83de28db51228e7f2c2f5878eb00c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With $foo, an object obtained with Inline::Perl5, 「say $foo.perl」 gives: | |
Inline::Perl5::Perl5Object.new( | |
ptr => NativeCall::Types::Pointer.new(191831688), | |
perl5 => Inline::Perl5.new | |
) | |
In Perl 5, 「$foo->{bar}」 returns an expected value, but in Perl 6, | |
「$foo<bar>」 gives: | |
Type Inline::Perl5::Perl5Object does not support associative indexing. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To be fair, you generally shouldn't be mucking about in an object's internals like that.
Also an object in Perl 5 is created by blessing a reference, and that reference can be to anything including arrays and even to a string.