Sara has asked for the wisdom of the Perl Monks concerning the following question:
so I am greping for the value in the Type which is Divorced and thats in the fourth line , I want somthing like :blablblablabjb blabalbbaabb;b blablababja;b Type: Divorced dffggf blbab
I am doing the follwing :$goal = Divorced;
can someone just tell me what is wrong with my code !! thanksif (m/^(Type:)\s*(\w+)/); { $goal = $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: grep for a name
by DamnDirtyApe (Curate) on Jul 30, 2002 at 20:35 UTC | |
|
Re: grep for a name
by VSarkiss (Monsignor) on Jul 30, 2002 at 20:38 UTC |