Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Limit of char's passable to a module in Perl?

JoeMcJoeMc Posts: 55Member
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

Comments

  • JonathanJonathan Posts: 2,914Member
    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.");
  • JonathanJonathan Posts: 2,914Member
    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.");
  • JoeMcJoeMc Posts: 55Member
    : 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
Sign In or Register to comment.