Is there a web-based form that you're filling out that is calling this script or are you just trying to go to this script directly?

The $query->param statements are retrieving data that this script is expecting to receive. If you're going to the script directly using the URL that you provided, then you're not passing any data to the script. That means the subroutine is probably trying to act on a directory instead of a file as it is expecting to do. Without the web-based form that calls this script or a better understanding of what you're trying to do with this script, I'm probably not going to be able help much more.

Also, the open statement seemed a bit odd in its syntax (referring to the "+>$FILE/$name" portion). My first instinct is that it is incorrect, but I'm not 100% sure about that. Perhaps others more experienced than me would be able to clarify if that is correct syntax or not.


In reply to Re: Web broadcast e-mail perl script by dasgar
in thread Web broadcast e-mail perl script by goosenoose

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.