in reply to Help for translation

Perl 6 allowes to redefine operators.

If you want a "similar syntax" in Perl 5 you'll need vector objects with overloaded operators.

The hyper operators X and Z could be emulated with List::Util functions like 'reduce'.

Eg the [+] is probably just sum .

Otherwise just use plain functions.

But I'm pretty sure you'll already find what you need on CPAN.

Whatever you really want ... As usual you are pretty vague.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Replies are listed 'Best First'.
Re^2: Help for translation
by kepler (Scribe) on Sep 02, 2019 at 08:45 UTC

    Hi

    No, I'm not being vague at all. I have that piece of astronomy code in Perl6 on Rosetta, right? I have an entire website of professional astronomy where I have basically all made in Perl5. I want to the modules to interact, so it's not smart a Perl6 one routine only for this interaction, don't you agree? I just wanted to make the code in Perl5 for that.

    Kepler

      "...have an entire website of professional astronomy..."

      Great. I am only an amateur. But anyway, please post the link

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

      I have an entire website of professional astronomy where I have basically all made in Perl5.

      what website? open source?

      A reply falls below the community's threshold of quality. You may see it by logging in.
A reply falls below the community's threshold of quality. You may see it by logging in.