Sometime you may want create standalone executables in perl.
You code is in Perl not in C. Well, have you ever heard about "perlcc" ?
Take a look:
root@scarface:~# cat test.pl
#!/usr/bin/perl -w
use strict ;
my $web = "perlmonks rocks !" ;
print "$web\n" ;
root@scarface:~# perlcc test.pl -o test
root@scarface:~# ./test
perlmonks rocks !
Depend on the code it may not work as well, but in almost cases it can be used.
root@scarface:~# file test*
test: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dy
+namically
test.pl: a /usr/bin/perl -w script text executable
Remember, perlcc is an experimental program, don`t use it for production.
Edit BazB: reformatted, changed code tags slightly.
Title edit by tye