Anonymous user
Native shebang: Difference between revisions
Added perl script.
m (Corrected compile bug, should run correctly now.) |
(Added perl script.) |
||
Line 374:
<lang sh>$ ./echo.foo --arg x "Hello, world!"
Hello, world!</lang>
=={{header|Perl}}==
===Using perl to script perl===
Perl is a script language, so it is natural, native and easy:
'''File: echo.pl'''
<lang perl>#!/usr/bin/perl
print "@ARGV\n";
</lang>
'''Usage:'''
<pre>
./echo.pl Hello, world!
</pre>
{{out}}
<pre>
Hello, world!
</pre>
=={{header|Python}}==
|