Hacker News new | ask | show | jobs
by perlperson 2488 days ago
This is a _perfect_ case -- to get started, you can just put `shell` in front of every line

  #!/bin/bash
  echo hello
change to

  #!/usr/bin/env perl6
  shell "echo hello"

then for arguments, try making `foo.p6`

  #!/usr/bin/env perl6
  unit sub MAIN($name,:$times,:$language);
  say $name, $time, $language
and run

  ./foo.p6 --help