in reply to Splitting on unprintables
Does the file contain the literal text of '\x0a', or is it just the hex value of an ASCII character in the file. If literal text, then $/ = '\x0a' should work.
If its the ASCII value (0x0A == ASCII Line Feed), then I'm guessing you're probably getting this from a *nix system and are parsing it on something else. Try setting $/ = "\n" or maybe $/ = 0x0A.
Also, remember that $/ does not contain regular expressions.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Splitting on unprintables
by sauoq (Abbot) on Aug 13, 2003 at 21:27 UTC |