Hi, Somethig like this should work (untested):
my ( $name, $info ) = split /\(/, $data; regards, Aim. ============================================================ [EMAIL PROTECTED] wrote: > 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. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]