RE: a question for split function in perl

2004-12-01 Thread Gardner, Sam
Title: RE: a question for split function in perl pretty easy. . . Just add the colon to the character class. . . $line = fordGID=54097; $line2 = fordGID:54097; ($match,$data)=split(/[=:]/,$line); print line 1 is $match, $data; ($match,$data)=split(/[=:]/,$line); print line 2 is $match,

RE: a question for split function in perl

2004-12-01 Thread Moon, John
-Original Message- From: Ella Cai [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 4:16 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: a question for split function in perl Our codes is like this: $line = fordGID=54097;