toohoo has asked for the wisdom of the Perl Monks concerning the following question:
Hello wise Monks,
I have seached yet but seems not found the relevant thread.
I have an issue in misunderstanding correct work. I have to write some XML using XML::Writer. After all I would like to use, what I have written as string. I get the following error message:
Can't use string .. as a SCALAR ref while "strict refs" in usea little bit of the code is the following
my $results_xml; my $results_block = XML::Writer->new( OUTPUT => \$re +sults_xml, # .. $results_block->end(); # .. $tempblock = $$results_xml;
Does please anybody have a hint how to solve this?
Thanks in advance, Thomas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't use string .. as a SCALAR ref while "strict refs" in use
by Anonymous Monk on Jan 23, 2015 at 14:06 UTC | |
by toohoo (Beadle) on Jan 28, 2015 at 12:20 UTC |