If you say you want to read from STDIN or command line, I guess you want it to behave like cat. I guess someone else needs to understand it too.
while (<>) { chomp; print "$_ world\n"; }
In reply to Re: How to write a program to read stdin or command line?
by lyklev
in thread How to write a program to read stdin or command line?
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |