Front page | perl.beginners |
Postings from December 2002
RE: Config::Ini
Thread Previous
|
Thread Next
From:
Hanson, Rob
Date:
December 11, 2002 08:56
Subject:
RE: Config::Ini
Message ID:
E693DE68445C064FA112BAFE0A5EFD259755BE@exchange.nj.aptegrity.com
You use "exists" on a hash key, not an entire hash...
if (exists $ini{$section}{email}){
...
}
Rob
-----Original Message-----
From: Paul Kraus [mailto:pkraus@pelsupply.com]
Sent: Wednesday, December 11, 2002 11:51 AM
To: Perl
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
Thread Previous
|
Thread Next