If you're simply bored to call your script like this:
you can set a "shebang" if you're in Linux/Unix putting the following line at the very beginning of your script1:perl myscript.pl arg1 arg2 ...
(usually /usr/bin/perl) and setting the file's executable flag at least for you:#!/path/to/perl
If you're in Windows, associate the perl executable as default action for double-clicking on the script, as suggested by other monks.$ chmod u+x myscript.pl
If you really want an executable, but just for fun and you can accept some degree of uncertainty about the results, you can use the perlcc compiler, which should generate a C source file from your Perl script. You can peruse perlcc for details, but be sure to read the disclaimer:
AKA: caveat emptor.The code generated in this way is not guaranteed to work. The whole codegen suite ("perlcc" included) should be con- sidered very experimental. Use for production purposes is strongly discouraged.
1I mean that you must start the given line from the first byte of your script.
Flavio (perl -e 'print(scalar(reverse("\nti.xittelop\@oivalf")))')
Don't fool yourself.In reply to Re: Perl executables?
by polettix
in thread Perl executables?
by void_Anthony()
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |