in reply to Re^2: Writing output to a scalar with XML::Writer
in thread Writing output to a scalar with XML::Writer

What does print $XML::Writer::VERSION print?
What does print ref \$output print?

Replies are listed 'Best First'.
Re^4: Writing output to a scalar with XML::Writer
by longliveAJ (Acolyte) on Feb 15, 2006 at 20:20 UTC
    $XML::Writer::VERSION - 0.520

    print ref \$output
    This will print SCALAR

      0.520 did not support this. From the 0.520 documentation:

      OUTPUT

      An object blessed into IO::Handle or one of its subclasses (such as IO::File); if this parameter is not present, the module will write to standard output.

      Passing a string reference was only introduced in 0.530.

        Thanks a lot buddy...