##
# Create a hash called %options
my %options;
# Create a *scalar* variable called $options and then try
# to use it as a reference. Since it's just been created,
# it's undefined. Hence this won't work.
my $options->{'heredoc'} = '1';
# Call ReadINI passing it $copy and your %options hash.
my $config_copy = ReadINI ($copy,%options);
##
##
$options{heredoc} = 1;