Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PERL help


ghost's Avatar
0 0

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:)


n3w7yp3's Avatar
Member
0 0

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.


ghost's Avatar
0 0

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


AldarHawk's Avatar
The Manager
0 0

in all my time using PERL I never knew you compiled it. PERL is a scripting language meaning that you can execute it on the fly. Edit Code test then edit again without having to wait for compilation.

If anyone out there disagrees with me please show me some Compiled PERL code.

:evil:


ghost's Avatar
0 0

Perl is an interpreted language, but like most unaware people who throw the term compiler, and words like it, around I'm sure it was a simple mistake made by an misinformed individual.


n3w7yp3's Avatar
Member
0 0

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.