Re: another perl question

2000-02-13 Thread Austin Bingham
> how do I differentiate an empty line from end-of-file in perl? Would an > empty line just equal "\n" and end-of-file equal ""? Without knowing how you are processing the file, I know that I generally find EOF by waiting for a "false" return value from a read call. This code will read a file un

Re: another perl question

2000-02-10 Thread Michael Orion Jackson
IIRC you can find if an line is empty by doing a match against a regex like /^$/ or something (maybe it was /$^/) where you have the begin-line metachar next to the end-line metachar, with nothing in between. Of course, I don't rightly know if a \n would disturb that or not... :)

another perl question

2000-02-10 Thread Jusitn Georgeson
how do I differentiate an empty line from end-of-file in perl? Would an empty line just equal "\n" and end-of-file equal ""? -- ; Justin Georgeson "free the mallocs" ; ; http://home.austin.r