If I had to guess, I'd say you're splitting a UNIX file, and the "square
boxes" are the UNIX endline characters.  To be sure, though, the best way
would be to download a freeware hex editor(there's loads of them on the
Internet, but I've been using one called XVI32).  Then you can eliminate the
lines using the hex representations of the characters.  Here's an example of
something that I used when I was parsing the Win32 EventLog.

${$event}{eventdescription} =~ tr/\x0D\x09\x0A//g;
#replace all of the characters x0D, x09, and x0A

In your case, I guess it would be more like:

@array = split /\x0D/,$var;
#(assuming you find the character is x0D)



-----Original Message-----
From: Scott Lutz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 5:06 PM
To: Beginners (E-mail)
Subject: Character Types


I am trying to do a split on a string with what looks like square boxes
separating the data.
Is this a tab?
I was trying to find an ASCII value for this to split on it, but can't
find one.
Any ideas?

Scott Lutz
Pacific Online Support
Phone: 604.638.6010
Fax: 604.638.6020
Toll Free: 1.877.503.9870
http://www.paconline.net


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to