This CPAN distribution will install a binary program on your system called 'hashbang'. You can use this program to write your own hashbang style interpreters in Perl. Let's say you've implemented a language called foo in a file called foo.pl. Put the file in the same directory as the hashbang executable. And then create a symbolic link from foo to hashbang. Like this:As for the rest, I wrote a simple perl language interpreter in a perl script, it's really fairly simple to do, if you're interested let me know and I get it uploaded someplace.cd /usr/bin cp ~/foo.pl . ln -fs hashbang foo
In reply to Re: perl script used as sh-bang
by BUU
in thread perl script used as sh-bang
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |