Re: Perl out to PHP

2005-02-03 Thread Paul Archer
4:19pm, Ing. Branislav Gerzo wrote: Hi all, My friend is making website in PHP, but my scripts are in Perl, for example user write some text, and I want for example print it uppercase (I know, bad example, but I want/have to do it - something different and more complex - in my case via Perl). So I'

RE: Addendum: Content_Length.

2005-02-03 Thread Bob Showalter
Sara wrote: > Why the length is not coming out? Any ideas? > > # > > my @aho = ("fgfgfgf", "fgfgfgfgf", "fgfgfgfg"); > > my $length += length($_) for @aho; A perl "gotcha". The 'for' modifier creates a loop, and the 'my' is scoped to the body of t

Addendum: Content_Length.

2005-02-03 Thread Sara
Why the length is not coming out? Any ideas? # my @aho = ("fgfgfgf", "fgfgfgfgf", "fgfgfgfg"); my $length += length($_) for @aho; print "Content-type: text/plain\n\n"; print "$length"; # Thanks, Sa

Perl out to PHP

2005-02-03 Thread Ing. Branislav Gerzo
Hi all, My friend is making website in PHP, but my scripts are in Perl, for example user write some text, and I want for example print it uppercase (I know, bad example, but I want/have to do it - something different and more complex - in my case via Perl). So I'm thinking how to do it best. Scen

Re: Module PAR

2005-02-03 Thread Jason Murray
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 mysel

Re: Content_Length

2005-02-03 Thread Sean Davis
Content length includes all the content, including names of form parameters, etc. If you want to count the keystrokes for a form, you could just run through the form parameters and get the length of each value (assuming they are all text fields). Check out these two links to the CGI.pm do

Module PAR

2005-02-03 Thread Augusto Flavio
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 thi

Content_Length

2005-02-03 Thread Sara
I have like 20 variable coming from a form, using CGI.pm in my script. I am at a loss as how to get $ENV{'Content_lenght'} for all of those collectively. Is there anything in CGI.pm for it?. I am trying to count every keystroke that user inputs to form. Thanks, Sara.