You just need to index the hash element:

    if ( exists $ini{$section} ) { .. }

Not sure about that " , email " though!

Rob

----- Original Message -----
From: "Paul Kraus" <[EMAIL PROTECTED]>
To: "Perl" <[EMAIL PROTECTED]>
Sent: Wednesday, December 11, 2002 4:51 PM
Subject: Config::Ini


> When I run my program I get this error at this line.
>
> [root@fileserver pdkbackup]# ./backup
> exists argument is not a HASH or ARRAY element at ./backup line 29.
>
> if (exists %{$ini{$section}}, email){
>       print "$ini{$section}{email}\n\n";
>   }
>
> This statement is taken verbatim from the perldoc Config::Ini
>
> Paul Kraus
> Network Administrator
> PEL Supply Company
> 216.267.5775 Voice
> 216-267-6176 Fax
> www.pelsupply.com
>
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to