Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Okay, I've had my morning coffee, now.

What error messages are you getting? What are your symptoms? What is the purpose of lines 6 through 9? Which modules are you using?

Usually, I'd suggest adding warnings and strict and then fixing your errors. In this case, I'll suggest fixing your errors, and then adding strict and warnings and fix the new ones that come up.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

This code doesn't look like you seriously tried at all. You don't specify your modules, you set up variables you don't need, it makes little to no sense. It looks like a handful of cargo-culted lines from somewhere. On top of that, you want to figure out how to post something to a website? I suggest you spend a little time learning the basics of the language before trying to do this project.

In the event that you do know perl, then you sure chose a poor way of stripping down your code. You stripped out your use declarations, but you left in some lines that do *nothing* to further your task.

I hate to be bitchy, but It's a fundamental skill of debugging to be able to reduce your code to a small example to reproduce a bug. Another fundamental skill is to describe the problem. You can't send the image as raw data? Well, *what are the symptoms*? Blue smoke? A genie slapping your hand with a ruler? The Internet police issuing you a citation for "bad content uploading"?


In reply to Re: lwp post file by roboticus
in thread lwp post file by Anonymous Monk

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?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-24 18:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found