Front page | perl.beginners |
Postings from March 2003
Split Problem
Thread Next
From:
Jimstone77
Date:
March 27, 2003 03:39
Subject:
Split Problem
Message ID:
1de.564218a.2bb43ced@aol.com
I'm having a problem splitting a variable and need some help. What I have is
some variables with a name, and then information in parens. A couple examples:
$data = "David (man from uncle)";
$data = "John Doe (The boy down the hall)";
What I want to do is split $data into two string variables, one holding the
$name, and the other holding all the $info that is within the parens. How
would I do this? Thanks for any help.
Thread Next
-
Split Problem
by Jimstone77