From: "Bullock, Howard A." <[EMAIL PROTECTED]>
> I apologize for the previous post that was sent prematurely.
> 
> After reading the IniHash.pm I found that I could pass The ReadINI
> method a scalar reference. So my solution is:
> 
>     use Encode;
>     open(FH, "<:encoding(UTF-16)", $file);
>     my $Data;
>     {
>         local $/;
>         $Data = <FH>;
>         close FH;
>     }
>     my $DomainConfig = ReadINI (\$Data, \%ReadINIoptions);

Yes, I forgot to document this. With recent versions you may use 
either of

        $hashreference = ReadINI ($filename, %options);
        $hashreference = ReadINI (\$data, %options);
        $hashreference = ReadINI ([EMAIL PROTECTED], %options);
        $hashreference = ReadINI ($filehandle, %options);

I will release a version with improved docs shortly.

Sorry, Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to