For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > February 2005 > Module PAR









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Module PAR
Augusto Flavio

2005-02-03, 3:55 pm

Hi!


I'm have a big problem. I make a module(pm) and now i
want compile this module. I tried use the perlcc but i
receive the msg that the module can't be compiled
because have shared libs.

However i found a module, PAR(Perl Archive Toolkit)
which can compile my module. Then, i was to install
this module(PAR). After the instalation of module i
run the command:

$ pp -o compiled.pm -M Exporter module.pm

ps.: The module.pm just require the lib Exporter.

I not have problems with the compilation. Then the
next step would be execute a script (CGI) that use the
compiled module.

I open my firefox and make run the script. Unhappyly i
get this msg:
Unrecognized character \x7F at compiled.pm line 1.

Which i do? Have something wrong with the method of
compilation? Is someone that used the module PAR and
can help me?


Thanks for all.
ps.: Sorry for my english



Augusto Flavio






__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
Jason Murray

2005-02-03, 3:55 pm

Hey Augusto,
We has this problem just yesterday with Perl2exe. It was an extra
character on Line 1. Not sure what you are using and an IDE but I would
make sure it is not added extra characters that you do don't know about.
Remove the first line altogether and retype it.
Try Notepad or myself I use Textpad.


Thanks,

Jason Murray
IBM Global Services
Ph: 416.478.6239
MurrayJ@ca.ibm.com





Augusto Flavio <moraisaf@yahoo.com.br>
02/03/05 10:41 AM

To: beginners-cgi@perl.org
cc:
Subject: Module PAR


Hi!


I'm have a big problem. I make a module(pm) and now i
want compile this module. I tried use the perlcc but i
receive the msg that the module can't be compiled
because have shared libs.

However i found a module, PAR(Perl Archive Toolkit)
which can compile my module. Then, i was to install
this module(PAR). After the instalation of module i
run the command:

$ pp -o compiled.pm -M Exporter module.pm

ps.: The module.pm just require the lib Exporter.

I not have problems with the compilation. Then the
next step would be execute a script (CGI) that use the
compiled module.

I open my firefox and make run the script. Unhappyly i
get this msg:
Unrecognized character \x7F at compiled.pm line 1.

Which i do? Have something wrong with the method of
compilation? Is someone that used the module PAR and
can help me?


Thanks for all.
ps.: Sorry for my english



Augusto Flavio






__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail

--
To unsubscribe, e-mail: beginners-cgi-unsubscribe@perl.org
For additional commands, e-mail: beginners-cgi-help@perl.org
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com