Re: passing CGI paramters

2007-07-07 Thread CraigT
I know I'm not supposed to say thanks here. But the open source/Perl community has really impressed me with their willingness to help those less knowledgeable. Its nothing short of amazing in my experience. When I first started the prototype work I've been doing, I called the public U. of Ky Com

Re: passing CGI paramters

2007-07-06 Thread Perrin Harkins
On 7/6/07, CraigT <[EMAIL PROTECTED]> wrote: In this regard though, I would like to ask what you recommend to pass back several paramters from a sub The usual way to do it is to accept a list of return values: my ($foo, $bar) = sub_call($param); I'd like to focus on this problem here because

Re: passing CGI paramters

2007-07-06 Thread CraigT
I realize that I have some redoing to do in relation to the scope/closure stuff to make the PerlRun/mod_perl transition, and thanks to you all I have a pretty good idea of what I have to do. In this regard though, I would like to ask what you recommend to pass back several paramters from a sub (

Re: passing CGI paramters

2007-07-06 Thread Perrin Harkins
On 7/6/07, CraigT <[EMAIL PROTECTED]> wrote: Am I passing the paramters in the anchor examples I presented earlier as I should using PerlRun or mod_perl? I don't think you ever showed us the code. You just showed the code where you print the HTML. If you can show us a complete sub and how you

Re: passing CGI paramters

2007-07-06 Thread Perrin Harkins
On 7/5/07, CraigT <[EMAIL PROTECTED]> wrote: Is what I'm hearing you say is that in the PerlRun environment (and I'm guessing the mod_perl environment too), anything that a subroutine uses coming from outside that code must be passed as a parameter like '&sub($paramter)'. Am I correct in this.

Re: passing CGI paramters

2007-07-06 Thread CraigT
A few more questions please. Am I passing the paramters in the anchor examples I presented earlier as I should using PerlRun or mod_perl? Should I be able to see the correct passed parameters when I pull them across to the module invoked by the anchor prior to entering a sub in that module (my

Re: passing CGI paramters

2007-07-05 Thread Michael Peters
CraigT wrote: > Perrin, > > Is what I'm hearing you say is that in the PerlRun environment (and I'm > guessing the mod_perl environment too), anything that a subroutine uses > coming from outside that code must be passed as a parameter like > '&sub($paramter)'. Am I correct in this. Yes and

Re: passing CGI paramters

2007-07-05 Thread CraigT
Perrin, Is what I'm hearing you say is that in the PerlRun environment (and I'm guessing the mod_perl environment too), anything that a subroutine uses coming from outside that code must be passed as a parameter like '&sub($paramter)'. Am I correct in this. Associating the words scope and

Re: passing CGI paramters

2007-07-04 Thread Perrin Harkins
On 7/4/07, CraigT <[EMAIL PROTECTED]> wrote: In each of the modules, I bring 'str' across with something like my $somevar = $page->param("str") assigning the paramter values to a declared Perl variable. Okay, but do you pass $page explicitly to the sub, or do you just define it outside the sub

Re: passing CGI paramters

2007-07-04 Thread CraigT
I'm not even getting into any subroutines in the modules that the other 2 anchors invoke after the first anchor is executed. Coming into the modules, the 'str' values are wrong. The modules that the anchors execute are 3 different physical modules in contrast to logical subroutines in the same

Re: passing CGI paramters

2007-07-04 Thread David Scott
Have a look at this: http://www.perl.com/pub/a/2002/05/07/mod_perl.html Perrin is probably right that it's a closure issue. Take a good look at your code. Incidentally, I've found it useful to do a Google search on incomprehensible error messages ..:) d CraigT wrote: Perrin, I'm not su

Re: passing CGI paramters

2007-07-04 Thread CraigT
Perrin, I'm not sure I'm communicating very well. And I'm not sure I understand what you said. Let me outline what I'm experiencing again. I have a page with multiple anchors.I saw this problem immediately with 3 of these anchors when I invoked the page under perl-run (PerlRun). The 3 anch

Re: passing CGI paramters

2007-07-03 Thread Perrin Harkins
[Please keep it on the list] On 7/3/07, Craig Tussey <[EMAIL PROTECTED]> wrote: Thanks again for responding. Here is the link to my scratchpad. Keep in mind that I was making entries to the scratchpad in response to Clintons questions. http://www.perlmonks.org/?viewmode=public;node_id=624649

Re: passing CGI paramters

2007-07-03 Thread Perrin Harkins
On 7/3/07, CraigT <[EMAIL PROTECTED]> wrote: I put a lot of stuff in my (cliff) scratchpad like the ENV values, the relevant Apache httpd entries, a dump, the Apache error log, and code examples. Would it be possible for you to review the stuff I put there? Maybe later. Do you have a link fo

Re: passing CGI paramters

2007-07-03 Thread CraigT
Perrin, Thanks for responding. I'm not sure why it posted four times. I'm new here. I posted the original request Sunday morning I think.I didn't get any responses, so early this morning I registered as 'cliff' with perl monks and made a similiar request. Clinton responded and worked

Re: passing CGI paramters

2007-07-03 Thread Perrin Harkins
Hi, There's no need to post your question four times. I'm trying to bring my application up using ModPerl::PerlRun. I have anchors at places in my code like I can't tell what you're doing from this description. Can you show us some of your code? Additionally, if I execute the same anchor