Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: checking for piped input databy parv (Parson) |
on May 04, 2023 at 03:21 UTC ( [id://11151987]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|