How do I create a symbolic link in Perl 6?

157 views Asked by At

How do I create a symbolic link using Perl 6?

Of course, as mentioned in another question, I can use actual shell commands using shell or run:

shell('ln -s REALLY_LONG_FASTQ_NAME.fastq short.fq');
run('ln', '-s', 'REALLY_LONG_FASTQ_NAME.fastq', 'short.fq');

But, I'd prefer to be able to create them more directly with a function.

1

There are 1 answers

0
Christopher Bottoms On BEST ANSWER

UPDATED


symlink("original_filename","link_filename");

See also the official documentation on symlink.