Perl

Moderators: Jonathan
Number of threads: 1236
Number of posts: 3605

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Limit of char's passable to a module in Perl? Posted by JoeMc on 8 Aug 2007 at 12:53 PM
I'm trying a new module out from CPAN called Log4perl.
What I'm trying to do is automate logging to a log file
11 fields, some of which will have to be passed as parameters.
the total of all these fields in character length is 4275
characters at max, some of the fields reaching as high as
4000 bytes. Is this module a good choice for this?
Is there a limit of how many characters in length your parameters
can be when sending them to a module? I know cgi files max at 256,
is it the same?

Thanks in advance for any insight on this,
JoeMc
Report
Re: Limit of char's passable to a module in Perl? Posted by Jonathan on 16 Aug 2007 at 3:49 AM
You're just passing a variable, I don't see any limits you'll run into (of course, other than when you hit multiple gigabytes and stuff).

Jonathan, back from vacation in East Europe
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
Report
Re: Limit of char's passable to a module in Perl? Posted by Jonathan on 16 Aug 2007 at 3:51 AM
Also, the CGI stuff is actually a limit on the length of the query string, and is not a Perl limitation. If you use POST method rather than GET, you won't run into it.

Jonathan
###
for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
(tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
/(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");
Report
Re: Limit of char's passable to a module in Perl? Posted by JoeMc on 17 Aug 2007 at 6:20 AM
: Also, the CGI stuff is actually a limit on the length of the query
: string, and is not a Perl limitation. If you use POST method rather
: than GET, you won't run into it.
:
: Jonathan
: ###
: for(74,117,115,116){$::a.=chr};(($_.='qwertyui')&&
: (tr/yuiqwert/her anot/))for($::b);for($::c){$_.=$^X;
: /(p.{2}l)/;$_=$1}$::b=~/(..)$/;print("$::a$::b $::c hack$1.");

Thanks Jonathan,
you just helped eleviate a bit of stress from the world.

Regards,
JoeMc



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.