rajan has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks: I have an issue during a file conversion from XML to CSV. I derive values from the XML file and write it into a CSV file (using perl file handler). The CSV file should be of "ASCII text" format, but I get it in a format "ISO 9660 filesystem image". Can you please help me on, how to change the format to ASCII text ?
my $path = '/opt/finance/File1'; my $PMN = 'KKDDI'; my $MON = 'DDIID';my $YEAR ='2013';my $MON='JAN';my $DATE='12' my $CSV = $path . '.csv'; open CSV, ">$CSV" || die "Cannot open the file $CSV $! \n"; print CSV "\"ABCDE501,\"\"$PMN\"\",$MON/01/$YEAR,$MON/$DATE/$YEAR,$MON +/$DATE/$YEAR\"\n"; # Data hash contains values that has to be printed. foreach my $key (keys %DataHash) { print CSV $DataHash{$key}; } close(CSV);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Convert ISO 9660 filesystem image to ASCII text
by BrowserUk (Patriarch) on May 10, 2013 at 14:43 UTC | |
|
Re: Convert ISO 9660 filesystem image to ASCII text
by roboticus (Chancellor) on May 10, 2013 at 14:28 UTC | |
|
Re: Convert ISO 9660 filesystem image to ASCII text
by InfiniteSilence (Curate) on May 10, 2013 at 18:11 UTC |