syphilis has asked for the wisdom of the Perl Monks concerning the following question:
And, after muddling my way through the installation of Inline::Perl5 (with the assistance of a number of patient monks), I've come up with this perl6 script (which works fine):sisyphus@sisyphus5-desktop:~/p6$ perl6 -v This is Rakudo version 2015.12 built on MoarVM version 2015.12 implementing Perl 6.c. sisyphus@sisyphus5-desktop:~/p6$ perl -v This is perl 5, version 22, subversion 0 (v5.22.0) built for x86_64-li +nux ....
That correctly outputs:use Inline::Perl5; my $p5 = Inline::Perl5.new; $p5.use('Math::Float128'); my $f128 = $p5.invoke('Math::Float128', 'new', '1.2345'); say "$f128"; $f128.print; say ''; # insert the newline say "ok";
Based on that it seems to me that the perl5 overloading of "" is being correctly accessed - as that's the only way I can think of that bothsisyphus@sisyphus5-desktop:~/p6$ perl6 use.pl 1.23450000000000000000000000000000009e+00 1.23450000000000000000000000000000009e+00 ok
Why ? (That's my second question).Inline::Perl5::Perl5Object.new(ptr => NativeCall::Types::Pointer.new(1 +00938200), perl5 => Inline::Perl5.new)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [perl6] More Inline::Perl5 musings
by Corion (Patriarch) on Mar 17, 2016 at 12:08 UTC | |
|
Re: [perl6] More Inline::Perl5 musings
by Tux (Canon) on Mar 17, 2016 at 13:25 UTC | |
|
Re: [perl6] More Inline::Perl5 musings
by duelafn (Parson) on Mar 17, 2016 at 16:28 UTC | |
by syphilis (Archbishop) on Mar 18, 2016 at 11:13 UTC |