in reply to Web broadcast e-mail perl script

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.

Replies are listed 'Best First'.
Re^2: Web broadcast e-mail perl script
by jethro (Monsignor) on Aug 21, 2010 at 15:38 UTC
    The open syntax is correct, the '+' opens the file for reading AND writing, see 'perldoc -f open'