Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to dup $FOO to STDINby jeroenes (Priest) |
on Nov 15, 2001 at 12:25 UTC ( [id://125527]=note: print w/replies, xml ) | Need Help?? |
Hmmm. It took some time to figure out what you really wanted, until I figured to check 'info dup'. And there it was: You want to simply duplicate the filehandle. You can go several ways here. But first:
You should not use caps for variable names, only for fileglobs. All caps names may cause conflicts with later versions of perl. Moreover, it is confusing, and maybe causing you to do the wrong thing.
Solutions:
HTH, Jeroen
In Section
Seekers of Perl Wisdom
|
|