in reply to Re: compare stdin for a number
in thread compare stdin for a number

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Re: Re: compare stdin for a number
by tachyon (Chancellor) on Mar 12, 2004 at 22:41 UTC

    Does this help? perl -lne "print m/^\d{5}$/ ? ' OK' : ' Fail'"

    tachyon

Re: Re: Re: compare stdin for a number
by Anonymous Monk on Mar 12, 2004 at 23:35 UTC
    Thanks for confirming that it's homework