Native shebang: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (→{{header|Perl 6}}: add Perl 6 example) |
|||
Line 592: | Line 592: | ||
<pre> |
<pre> |
||
./echo.pl Hello, world! |
./echo.pl Hello, world! |
||
</pre> |
|||
{{out}} |
|||
<pre> |
|||
Hello, world! |
|||
</pre> |
|||
=={{header|Perl 6}}== |
|||
Perl 6 is not installed by default on most systems and does not have a default install directory, so the path will vary by system. |
|||
{{works with|Rakudo|2015-11-20}} |
|||
'''File: echo.p6''' |
|||
<lang perl6>#!/path/to/perl6 |
|||
put @*ARGS;</lang> |
|||
'''Usage:''' |
|||
<pre> |
|||
./echo.p6 Hello, world! |
|||
</pre> |
</pre> |
||
{{out}} |
{{out}} |