in reply to Recursive file opening: reading an undef at the end of file
Your test for /^\s*$/ is redundant, because you've already removed all whitespace, and you test for an empty line.
I think your main problem is that you should have a next after the recursive call, or put the rest of the stuff in an else. You don't want to read a file and parse the line, do you?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Recursive file opening: reading an undef at the end of file
by thor (Priest) on Dec 23, 2003 at 20:17 UTC |