[EMAIL PROTECTED] wrote:
> Hi Frnds,
> I myself found some way.Read the file to an array and created a file
> as 
> per requirement and then inserted the objects in the array to file.
> ================================
> for ($i=0;$i < $#arr;$i++)
>     {
>       print OUTPUT $arr[$i];
>     }
> =========================

Yecch, don't write Perl like that! Perl's not C.

   print OUTPUT for @arr;

What's wrong with the Tie::File solution I posted for you yesterday? Maybe
I'm in everyone's killfile?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to