in reply to Re: Testing filehandles
in thread Testing filehandles

exit? I think that last is the appropriate construct here...


Who is Kayser Söze?
Code is (almost) always untested.

Replies are listed 'Best First'.
Re: Re: Re: Testing filehandles
by dominix (Deacon) on Jan 04, 2004 at 11:38 UTC
    The intent is to print every line entered at the console until a blank line is entered.
    so, you could exit isn't it ?
    or you could decide to continue with something else to do and in that case , you're right a last is better suited, but that was not the purpose. my code was from a one-liner test
    perl -pe '/^$/ && exit'
    which produce the expexted result and become
    perl -MO=Deparse -pe '/^$/ && exit'
    before I post it :-)
    --
    dominix