Another useful resource besides the web, and PM, would be a copy of the Llama and Camel books, (as they are somewhat colloquially known) from O'Reilly. Llama refers to the book
Learning Perl, and Camel refers to
Programming Perl. If you could only afford one, I'd recommend
Learning Perl first, as it is aimed more towards the person who needs a starting place in the language. I have fgound these books to be an invaluable resource in my quest to become a better perl programmer. If you already have these books, then you can ignore this advice. :)
A thought though. You might want to check the return value of the open() function when you call it to find out if it's been successful. If the open() is failing, then that would explain why the file isn't getting written. If you did something like
open FILEHANDLE, ">filename.txt" or warn "Cannot open file for writing, $!"; the system (assuming you can read the server log files) will tell you *that* it didn't open the file, and *why* it didn't open it. (That's what that $! thing is.)
You could even do something like (making sure you've already printed the html header)
open FILEHANDLE, ">filename.txt" or print "Couldn't open file, $!"; and it'll print to the browser window. You won't even have to read the server log file.
I hope this helps some.
-il cylic
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.