in reply to Manipulating STDIN
Better to bring in the extra text from a new source,
Any chance you'll post your forth interpreter here? I'd like to see it.while (<STDIN>) { $_ = "hi test text" if some_condition; # etc }
Update: One way to slip in an extra STDIN is to localize the handle:
That takes care of throwing away $_, too. BTW, your forth interpreter is 404 for me.while (<STDIN>) { do { local $_ = $_; open local(*STDIN), @other_args or die $!; # do stuff } if some_condition; # more stuff }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Manipulating STDIN
by ChwanRen (Acolyte) on Apr 11, 2004 at 06:08 UTC | |
|
Re: Re: Manipulating STDIN
by ChwanRen (Acolyte) on Apr 12, 2004 at 06:58 UTC |