Re: Reading 'Little Endian - UCS-2' text to perl

2007-02-15 Thread Eric Amick
> Hello, > > I'm having difficulties reading a log file from ADMT using ordinary perl > 5.8.7 open command. > After opening the file (apparently in "little endian" format, according to > my notepad++) i'm printed it and i get spaces everywhere (space between each > char!). > when i convert the fil

RE: Reading 'Little Endian - UCS-2' text to perl

2007-02-15 Thread Conor Lillis
I would guess (without checking I have to say) that there is NULL padding between chars - notepad deals with these automatically. this will strip your NULLs $inputline =~ s/\0//ig; -- Conor Lillis -- Systems Adm