Hi, The code was tested..... and it compiles for mee
Yaron ----- Original Message ----- From: "Rob Dixon" <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Wednesday, August 1, 2007 2:23:44 PM (GMT+0200) Auto-Detected Subject: Re: Removing duplicate records [EMAIL PROTECTED] wrote: > > Small correction.... > > Try > open my F, '>outputsample1' or > die 'Failed to open outputsample1'; > my $f = \*F; > while (($key, $value) = each %hash) > { > > print $f $value."\n"; > > } > close $f; Yaron. It would help if you tested your code before you published it. This is nonsense. This part of Mihir's code was fine as it was, while yours doesn't even compile. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/