while i understand the difference between these two i am unsure how to
handle these back and forth. let me explain:
I have an upload module with the handler using an Apache::Request
my $r = Apache::Request->new(
shift,
POST_MAX => 10 * 1024 * 1024, # in bytes, so 10M
DISABLE_UPLOADS => 0
);
later on i want to send all the info recieved from a file to another
module that inserts this information into a database table
rather than pass through a LWP::Simple::get call i would like to call
the subroutine that handles the logic directly like so:
&MYMod::Add::Add($r);
BUT i have the above subroutine pulling in the Apache->request object if
through MYMod::Add::handler
so i tried something like this in my upload module
my $r = Apache->request;
# Standard stuff, with added options...
my $apr = Apache::Request->new(
$r,
POST_MAX => 10 * 1024 * 1024, # in bytes, so 10M
DISABLE_UPLOADS => 0
);
and then
&MYMod::Add::Add($r);
but this just borks out the upload procedure and nothing get processed, whereas if i just pass in the Apache::Request
it doesnt process the parameters correctly
can anyone explain the finesse i am messing up?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.