http://www.perlmonks.org?node_id=642190


in reply to Re^2: How to write a program to read stdin or command line?
in thread How to write a program to read stdin or command line?

Scalability / future expansion. The program may need other data on the command line unrelated to the need stated in the OP.

Anyway, I didn't say -i is required. I answered the question "How would you...." And this is how I would. If you would do it otherwise, fine.