Front page | perl.beginners |
Postings from December 2002
Re: Config::Ini
Thread Previous
From:
Rob Dixon
Date:
December 11, 2002 09:06
Subject:
Re: Config::Ini
Message ID:
01b101c2a137$c7a44520$53a77ad5@home
You just need to index the hash element:
if ( exists $ini{$section} ) { .. }
Not sure about that " , email " though!
Rob
----- Original Message -----
From: "Paul Kraus" <pkraus@pelsupply.com>
To: "Perl" <beginners@perl.org>
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: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
Thread Previous