|Pathologically Eclectic Rubbish Lister|
Re: no output or error receivedby kcott (Chancellor)
|on Jun 28, 2013 at 09:58 UTC||Need Help??|
"But iam not getting any errors or output with this."
That's not overly surprising as you've turned off all warnings with:
Also, you haven't used strict (which would have provided some output) and you're not checking whether you're IO is working. I'd recommend you start your script like this:
Next take a look at open. See how the two examples at the start of the page end in:
This gives feedback if there were problems opening the file. Also note the 3-argument form with my $fh which is preferable to the 2-argument form you're currently using. An alternative to hand-crafting these messages for each open is to use autodie.
Once you make these changes to your code, you'll get some feedback. You may be able to fix the problems yourself. If you don't understand the messages, you can get more verbose output with diagnostics.
If, after all that, you're still stuck, post again with the output you get and I'm sure someone will be able to help.