PERL help
hi! i decided that i wanted to go way off the beaten path and try a go at perl. i downloaded it and i have no idea wut to do with this huge chunk of data. anyone wanna give me a lil push in wut to di rele have no idea wtf to do, could i jsut get a push in the right direction on wut to do? what compiler do i use and what do i compile to make this work? i am running windows xp. any help would be greatly appreciated:)
I am myself begining with Perl , It will be my first language. anywho for windows what you might want to look at is activeperl http://www.activestate.com/store/productdetail.aspx?prdGuid=81fbce82-6bd5-49bc-a915-08d58c2648ca
( P.s I'm looking for a perl mentor )
Perl is not an esoteric programming language. Rather, it is one of the more common ones.
There is a thriving Perl community. check out cpan, perlmonks, etc.
If you're usinga *nix distro (or have shell access to a *nix box), it has all sorts of helpful man pages and the like.
Check out the perlfunc man page, and the perl man page.
For a list of man pages, do:
$ man -k perl
Also, the following site is quite helpful:
http://www.sunsite.ualberta.ca/Documentation/Misc/perl-5.6.1/pod/perlfunc.html
HTH, and GL coding. Perl rocks.
the compiler i use for Perl is Crimson Editor and can be found at– www.crimsoneditor.com a good Perl tut can be found at Google, or at learn.perl.org/library/beginning_perl/ end3r
No, you're all wrong.
Perl is interpreted by default, yes. (/usr/bin/perl is the location on your *nix box). however, there is a Perl compiler:
[n3w7yp3@localhost n3w7yp3]$ whatis perlcc
perlcc (1) - generate executables from Perl programs
[n3w7yp3@localhost n3w7yp3]$ man -k perlcc
perlcc (1) - generate executables from Perl programs
[n3w7yp3@localhost n3w7yp3]$ man perlcc
NAME
perlcc - generate executables from Perl programs
SYNOPSIS
$ perlcc hello # Compiles into executable ’a.out’
$ perlcc -o hello hello.pl # Compiles into executable ’hello’
$ perlcc -O file # Compiles using the optimised C backend
$ perlcc -B file # Compiles using the bytecode backend
$ perlcc -c file # Creates a C file, ’file.c’
$ perlcc -S -o hello file # Creates a C file, ’file.c’,
# then compiles it to executable ’hello’
$ perlcc -c out.c file # Creates a C file, ’out.c’ from ’file’
$ perlcc -e ’print q//’ # Compiles a one-liner into ’a.out’
$ perlcc -c -e ’print q//’ # Creates a C file ’a.out.c’
$ perlcc -I /foo hello # extra headers (notice the space after -I)
$ perlcc -L /foo hello # extra libraries (notice the space after -L)
:
$ perlcc -r hello # compiles ’hello’ into ’a.out’, runs ’a.out’.
$ perlcc -r hello a b c # compiles ’hello’ into ’a.out’, runs ’a.out’.
# with arguments ’a b c’
$ perlcc hello -log c # compiles ’hello’ into ’a.out’ logs compile
# log into ’c’.
DESCRIPTION
perlcc creates standalone executables from Perl programs, using the
code generators provided by the B module. At present, you may either
create executable Perl bytecode, using the "-B" option, or generate and
compile C files using the standard and ’optimised’ C backends.
The code generated in this way is not guaranteed to work. The whole
codegen suite ("perlcc" included) should be considered very experimen-
tal. Use for production purposes is strongly discouraged.
<snip>
Nobody uses it though.