[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] parsing postscript



I'm trying to parse through a postscript file, and having some difficulty.

I'm using long line enders, like so:

$/ = "5.4 RY";

My problem comes in when, in the above example, I change the line to:

$/ = "5.4 RY\x0D";

Now, this never matches and reads the rest of the file in. Bummer.  If I
read in through the 5.4 RY, then reset $/ to "\x0D", I can get to where I
want.  I have verified that the line ends with RY followed by a carriage
return.

I'm having similar trouble elsewhere, where I need to read in through a
long string.

So, is there some trick to doing this?  Have I missed a step?  I can set
really long strings that include \x0D in them, but this one, and a few
others, it really doesn't like.  I am using the latest MacPerl.

Thanks for any ideas,
John



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org