B
bernd
Hello netties,
I cat a file (actually grepping some particular lines) to "perl -na -e"
and have to determine when I have read the last line of the content of
the file (which is actually "filtered" by grep already, so that I
cannot give perl the whole file as a command line argument).
Does somebody know how I detect the last line piped to perl? eof()
obviously does not work.
Cheers
Bernd
I cat a file (actually grepping some particular lines) to "perl -na -e"
and have to determine when I have read the last line of the content of
the file (which is actually "filtered" by grep already, so that I
cannot give perl the whole file as a command line argument).
Does somebody know how I detect the last line piped to perl? eof()
obviously does not work.
Cheers
Bernd