to:[EMAIL PROTECTED] Behalf Of
vega, james
Sent: Monday, November 01, 2004 10:33 PM
To: Perl-Win32-Users
Subject: RE: split and ^ character
> I'm trying to figure how to get the following code to work.
> I've tried a
> few combos, but nothing seems to get it right. I'
> I'm trying to figure how to get the following code to work.
> I've tried a
> few combos, but nothing seems to get it right. I'm guessing
> it's something
> simple, but I couldn't nail down what it was. I realize that
> ^ is a special
> operator but I don't see a way to escape it, given t
- Original Message -
From: "vega, james" <[EMAIL PROTECTED]>
@array = split(/$subrecdelim/, $mystr);
@array = split(/\Q$subrecdelim\E/, $mystr);
\Q - Quotes nonword characters until \E
Thanks James!
The other proposed solutions worked (thanks Dave and Tamira!), but I think
they had some m
Paul Rogers wrote:
I'm trying to figure how to get the following code to work. I've tried
a few combos, but nothing seems to get it right. I'm guessing it's
something simple, but I couldn't nail down what it was. I realize that
^ is a special operator but I don't see a way to escape it, given
Change this line --> $subrecdelim = '^';
to --> $subrecdelim = '\^';
HTH
Dave Kazatsky
Senior Middleware Administrator
W. (908) 575-6947
C. (973) 865-8106
|-+->
| | "Paul Rogers" |
| |