in reply to Re: regular expression
in thread regular expression
my $flag; while(<DATA>){ if (/^{(\w+)}/) { $flag = $1; } elsif ($flag =~ m/AUTHOR/) { # "store" values here } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: regular expression
by Anonymous Monk on Aug 16, 2009 at 14:31 UTC | |
by vitoco (Hermit) on Aug 16, 2009 at 19:13 UTC | |
by Utilitarian (Vicar) on Aug 16, 2009 at 19:28 UTC | |
by vitoco (Hermit) on Aug 16, 2009 at 20:37 UTC |