in reply to Config::IniHash heredoc errors.
$options-> is a reference. It referes to something (it doesn't matter what for the moment). When you write my $options you have not given $options a value, it is undef. -> doesn't work with an undefined value. You could do this:
my $options = {}; $options->{'heredoc'} = '1';
Which sets $options to refer to an empty hash, then assignes a key/value pair to the hash
However, looking at the code in context what you really want is:
my %options; $options{'heredoc'} = '1'; my $config_copy = ReadINI ($copy,%options);
The dereference operator is completely bogus in this context.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Config::IniHash heredoc errors.
by hesco (Deacon) on Dec 01, 2005 at 08:03 UTC | |
|
Re^2: Config::IniHash heredoc errors.
by hesco (Deacon) on Dec 02, 2005 at 18:28 UTC |