in reply to Re: checking for piped input data
in thread checking for piped input data

Thank you parv! Let me try out the -p option. That's very interesting...

Replies are listed 'Best First'.
Re^3: checking for piped input data
by parv (Parson) on May 04, 2023 at 03:21 UTC

    Personally I would use the option specification that requires an argument, opt=s (instead of leaving it optional, opt:s, as rot earlier). If the option value would be -, then would switch to reading from standard input unconditionally (without using -p function). That special value of opt would be mentioned in the POD.