Re: Script OK on RO... but fails on PC nsPerl
[email protected] (Philip Perry) Sat, 6 Jul 2002 23:35:32 +0000 (GMT)
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
On Sat 06 Jul, Richard Proctor wrote: > > On Fri 05 Jul, Philip Perry wrote: > > Hello All, > > > > I'm having a problem with processing an Windows Outlook Express '.dbx' > > file. > > > > The script I've written to cut down the file to plain text works a treat > > on the RISC OS port of Perl5.... but when I run it on the nsPerl port > > installed on my friends PC it appears to choke on bytes containing the > > value 0x1A. If these bytes are removed in a text editor, all then goes > > well on the PC. > > > > The problems is with windows treating text and binary files differently. > > If you make the input Binary then it will work. Hello All, Thanks Richard for your reply, Sorry to be such a dunce on this topic but how do I go about making the input binary? Is it something I need to do on the Windows side before running the script? Perhaps a DOS command? The properties window for the emails.dbx file has 'Archive' ticked... which I guess corresponds with DOS attribute 'a'. But having no background with the PC I'm learning as I go with a pretty basic 'MS-DOS Step by Step' text from the library! (The only one they had). Or is there a Perl 'lever' to fiddle with? Best regards, Philip. -- Philip Perry, [email protected] http://www.pjperry.freeuk.com/