prlusr has asked for the wisdom of the Perl Monks concerning the following question:
# gives me the result i want but when i redirect this to a file$xml = new XML::Simple; $data1 = $xml->XMLin("sample.xml"); print Dumper($data1);
it is not writing anything to file. Please help me if I am missing something .. Thanks .open FH5, ">>tagfile1" or die "error in reading..debug 1"; print FH5 Dumper($data1) or die $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: error in printing output of Data::Dumper to file
by moritz (Cardinal) on Dec 10, 2012 at 08:02 UTC | |
|
Re: error in printing output of Data::Dumper to file
by quester (Vicar) on Dec 10, 2012 at 07:19 UTC | |
by prlusr (Initiate) on Dec 10, 2012 at 07:57 UTC | |
by quester (Vicar) on Dec 10, 2012 at 08:30 UTC | |
|
Re: error in printing output of Data::Dumper to file
by marquezc329 (Scribe) on Dec 10, 2012 at 07:40 UTC | |
by prlusr (Initiate) on Dec 10, 2012 at 08:05 UTC | |
|
Re: error in printing output of Data::Dumper to file
by frozenwithjoy (Priest) on Dec 10, 2012 at 07:59 UTC |