in reply to How to accept ARG from PIPE or STDIN?
You could always use the special filename "-" to indicate it should read from STDIN. See "The Minus File" in perldoc perlopentut.