Christopher Bottoms
Christopher Bottoms

Reputation: 11168

How do I create a symbolic link in Perl 6?

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.

Upvotes: 0

Views: 158

Answers (1)

Christopher Bottoms
Christopher Bottoms

Reputation: 11168

UPDATED


symlink("original_filename","link_filename");

See also the official documentation on symlink.

Upvotes: 3

Related Questions