![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
input from STDIN or from a fileby citromatik (Curate) |
on Jan 28, 2008 at 17:05 UTC ( #664708=perlquestion: print w/replies, xml ) | Need Help?? |
citromatik has asked for the wisdom of the Perl Monks concerning the following question: Hi all, I usually design my scripts to get their input from a file. In some cases, specially when the script could be used in a pipe, I allow to get the input from STDIN when no file is specified at the command line. I do it this way:
I have included this in production code, is it safe? Thanks in advance citromatik
Back to
Seekers of Perl Wisdom
|
|