Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use Convert::EBCDIC qw(ebcdic2ascii); my $ascii_string; open EBCDIC, "C:\\EDCDICFILE"; $ascii_string = ebcdic2ascii(<EBCDIC>); print $ascii_string; close EBCDIC;
If its any help the file has a format which has lots of numbers unprintable characters and then goes into a sort of ! delimited file.
I really need to get to the bottom of this but my understanding here is at its limit.
UPDATE Since posting the supplier of the file has got back to me and explained that the file is not EBCDIC but record seq. He's changing his output to be line seq. which I can just read in so problem solved.
But no new learning is wasted as they say.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: EBCDIC conversions
by gellyfish (Monsignor) on Mar 15, 2005 at 13:54 UTC | |
by Scarborough (Hermit) on Mar 15, 2005 at 14:21 UTC |