Poblachtach32 has asked for the wisdom of the Perl Monks concerning the following question:
begin=in+the+begining&str=Greed+Suffering&end=The+End+Part<br>
I thought that $1 would have been assigned "Greed", but instead I get a runtime error saying that $1 is uninitailised. What am I doing wrong?if($str =~ /str=[a-zA-Z]+/) { print "\nMatch: $1"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex String Matching
by sauoq (Abbot) on Sep 08, 2002 at 19:00 UTC | |
by Arien (Pilgrim) on Sep 09, 2002 at 04:55 UTC | |
|
Re: Regex String Matching
by Steve_p (Priest) on Sep 08, 2002 at 19:01 UTC |