Package: libconfig-inifiles-perl 
Version: 2.39-2 
Kernel: Linux cbdev 2.6.17-2-686 #1 SMP Wed Sep 13 16:34:10 UTC 2006 i686 
GNU/Linux

Trying to open an empty file (that exists) and add a section. Get error 
message "Can't call method "AddSection" on an undefined value at test.pl 
line 7."

--- Example code ---

#!/usr/bin/perl
use strict;
use Config::IniFiles;

my $cfg = Config::IniFiles->new( -file => "empty.ini");
$cfg->AddSection("abc");
$cfg->RewriteConfig();

--- End example code ---

This error also appears when using methods GroupMembers, Sections, and 
Groups on an empty file.

Best regards,
Vidar L. Johannessen
System developer and technical support
 
Virtek Communication as
Telephone:   +47 33 03 05 35
Telefax:          +47 33 03 05 31
E-mail:            [EMAIL PROTECTED] 
Web Site:      www.virtek.no

Reply via email to