perl6 - How can I run external programs using Perl 6? (e.g. like "system" in Perl 5) -


i can use system in perl 5 run external programs. think of system miniature "linux command line" inside perl. however, cannot find documentation system in perl 6. equivalent?

in addition using shell or run, replace system perl 5, can use nativecall invoke libc system function.

on windows box, looks this:

use nativecall; sub system(str --> int32) native("msvcr110.dll") { * }; system("echo 42"); 

Popular posts from this blog