Use another language to call a function: Difference between revisions
Use another language to call a function (view source)
Revision as of 04:31, 20 March 2020
, 4 years ago→{{header|Raku}}: Fix code: Perl 6 --> Raku
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: Fix code: Perl 6 --> Raku) |
||
Line 1,356:
This [https://stackoverflow.com/a/50771971/3386748 SO answer], by JJ Merelo, explained the difficulty on providing a simple solution. So this attempt takes the same approach as PicoLisp by summoning the interpreter at run time.
{{trans|PicoLisp}}
query.
<lang perl6>#!/usr/bin/env
sub MAIN (Int :l(:len(:$length))) {
Line 1,372:
char buf[64];
sprintf(buf, "/home/user/query.
if (!(fp = popen(buf, "r")))
return 0;
|