I am using XML::Writer since it doesn't have that many dependencies and I'm going to use fatpack to roll what I need into the script itself.
Anyways, I am currently creating an XML file and the format is nice but I want to also display it to STDOUT.
Here is how I declare my XML::Writer
my $output = IO::File->new(">$xmlFileName");
my $writer = new XML::Writer(OUTPUT => $output,DATA_MODE => 1, DATA_IN
+DENT => 2 );
Now, if I remove the OUTPUT => $output
it prints everything to the console, formatted and nice -- which is what I want.
As soon as I set the output, I lose that functionality.
I can't see how I can get it back to the console.
I've been googling for a while now but I would appreciate some help from this community, which has been AMAZING so far.