![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Is it possible to write to STDIN ?by DrHyde (Prior) |
on Jul 21, 2014 at 14:54 UTC ( #1094513=note: print w/replies, xml ) | Need Help?? |
$ foo | bar
'bar's STDIN is whatever 'foo' spits to STDOUT. So if you can control how your code is executed from the shell, you can control its STDIN. For example ... will execute your script ten times, each time with a different number on its STDIN.
In Section
Seekers of Perl Wisdom
|
|