RE: split and ^ character

2004-11-02 Thread Ganesh Babu Nallamothu, Integra-India
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'

RE: split and ^ character

2004-11-01 Thread vega, james
> 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

Re: split and ^ character

2004-11-01 Thread Paul Rogers
- 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

Re: split and ^ character

2004-11-01 Thread Rhesa Rozendaal
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

Re: split and ^ character

2004-11-01 Thread Dave Kazatsky
Change this line --> $subrecdelim = '^'; to --> $subrecdelim = '\^'; HTH Dave Kazatsky Senior Middleware Administrator W. (908) 575-6947 C. (973) 865-8106 |-+-> | | "Paul Rogers" | | |