> 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
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...
:)
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