envinyater has asked for the wisdom of the Perl Monks concerning the following question:
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. Thanks :)my $output = IO::File->new(">$xmlFileName"); my $writer = new XML::Writer(OUTPUT => $output,DATA_MODE => 1, DATA_IN +DENT => 2 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using XML::Writer, how can I output to a file AND to the console?
by GrandFather (Saint) on Dec 13, 2012 at 22:38 UTC | |
by envinyater (Initiate) on Dec 14, 2012 at 14:37 UTC | |
|
Re: Using XML::Writer, how can I output to a file AND to the console?
by ww (Archbishop) on Dec 13, 2012 at 21:44 UTC | |
|
Re: Using XML::Writer, how can I output to a file AND to the console?
by aitap (Curate) on Dec 13, 2012 at 22:37 UTC |