RE: split and ^ character

2004-11-02 Thread Ganesh Babu Nallamothu, Integra-India
Hi Try this one Make use of \Q\E format. $subrecdelim = '^'; $mystr = 'cat^dog^pony^rat'; @array = split(/\Q$subrecdelim\E/, $mystr); foreach (@array) { print - $_\n; } Cheers. Regards, Prasad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of

RE: regex help

2004-11-02 Thread Ganesh Babu Nallamothu, Integra-India
Hi, Your Find patter is wrong. Use the following Pattern: s/([\t]\d{2}[:]\d{2}[\s])/\1/; Regards, Gopal.R -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Malcolm Mill Sent: Wednesday, November 03, 2004 2:41 AM To: [EMAIL PROTECTED] Subject: regex help

XML Twig - perl

2004-09-29 Thread Ganesh Babu Nallamothu, Integra-India
Hello, Using xml twig, I am trying to supply two elements in a line with the separator tab. Ex: c dl ABCCDE addeerwe sdfsdfserewrwe /dl /c Expected Result: c dl firstABC/firstsecondCDE/second firstadd/firstsecondeerwe/second firstsdfsdfs/firstseconderewrwe/second /dl /c Obtained