Robert Wohlfarth <rbwohlfa...@gmail.com> writes:

> On Wed, Sep 11, 2013 at 5:04 PM, Harry Putnam <rea...@newsguy.com> wrote:
> <snip>
>
>> while(<$cmdh>) {
>>   print $fh;
>>   print;
>>
> </snip>
>
> I believe this code prints the file handle. Try this:
> while(<$cmdh>){
>   print $fh $_;
>   print;

Egad! Yes, that is what's happening... thanks.


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to