Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

novitiate, all I can think of saying is, there are some small infelicities in your function that are probably not related to the problem you are having.

  • I think you don't really want to prototype form() since it probably appears too late in your program anyway - so, remove the parens.
  • You don't need to tell start_multipart_form() to use -enctype=>'multipart/form-data', because adding that parameter is about the only thing this alias for the start_form() function does.
  • You can concatenate all of your consecutive print statements, using a comma (Replace the semi-colons with commas and remove the prints between). I suppose this might have a cost for building the string, but I can't imagine that it would be as expensive as calling print for every string fragment.
I regret that there isn't more here that's helpful to your specific problem; I wasn't able to reproduce your errors, and lacking your netsession.cgi probably can't. But, hopefully, there might be something useful in what I did think of saying.

mkmcconn


In reply to Re: novie perl-CGI user by mkmcconn
in thread novie perl-CGI user by novitiate

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2023-06-05 02:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (22 votes). Check out past polls.

    Notices?