I have a string that was read from a file( in BINMODE ).
After I read from the file, I store the string in a variable
called $line.  Right after that, I do a substitution to get
rid of any leading characters that are hex 00( "\x00" )
        $line=~s/^\x00+//;

Sometimes, there can be anywhere from 1 to 50 extra \x00 
characters in front of the string.

The problem, is that occasionally the substitution doesn't
get rid all of the \x00 characters which results in a string
that can't be parsed correctly.  Any suggestions to make
sure the \x00 characters get removed?

I'm using ActivePerl 5.6 on NT Server SP6a.

Thanks!!!


Jeff Motter 

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to