Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Tried perlcc yet?

by hash (Scribe)
on Oct 12, 2003 at 18:05 UTC ( #298682=perlmeditation: print w/ replies, xml ) Need Help??

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

Comment on Tried perlcc yet?
Select or Download Code
Replies are listed 'Best First'.
Re: perlcc
by moxliukas (Curate) on Oct 13, 2003 at 06:01 UTC

    As I understand pp from PAR module is far more reliable and up-to-date. I have been using it without any difficulties with small scripts on Windows and Unix.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://298682]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2015-07-08 01:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls