|
|
| Perl: the Markov chain saw | |
| PerlMonks |
RE: Re: Can't open file within subroutineby muppetBoy (Pilgrim) |
| on Jun 14, 2000 at 14:33 UTC ( [id://18106]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Try replacing
with This should work if you want to just read from INFO. You are still not actually doing anything with the contents of the file. Try using: this will read all of the file into the lines array and then close the file (which is always good practice) Also, in your open or die code you may want to use $! as that will contain the relevent error message. Incidently try to wrap any code you post in the code tags, see Site How To, because it make it much easier to read.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||