The shebang says to which executable to feed the script, so for a perl script, it's simply:
#!/usr/bin/perl
You can add options if you like:
#!/usr/bin/perl -w
If you're trying to feed another script to your own script, you have to do #!/usr/bin/perl /usr/bin/perl/myscript.pl instead of #!/usr/bin/perl/myscript.pl because myscript.pl is not an executable.
In reply to Re: Perl script as the shebang?
by ikegami
in thread Perl script as the shebang?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |