FauxPasIII has asked for the wisdom of the Perl Monks concerning the following question:
1> if ($_ =~ /ORG\:(.+)/) {
2> if ($1 =~ /^(.+)\;(.+)\;(.+)$/) {
3> $card{'org'}=$1; $card{'div'}=$2; $card{'dept'}=$3;
4> } elsif ($1 =~ /^\;(.+)\;(.+)$/) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Scope of regular expression variables
by Shendal (Hermit) on Aug 29, 2000 at 22:54 UTC | |
by merlyn (Sage) on Aug 29, 2000 at 23:21 UTC | |
by takshaka (Friar) on Aug 30, 2000 at 02:35 UTC | |
by Carl-Joseph (Scribe) on Aug 30, 2000 at 03:47 UTC | |
by chromatic (Archbishop) on Sep 16, 2000 at 02:15 UTC | |
|
RE: Scope of regular expression variables
by nuance (Hermit) on Aug 29, 2000 at 22:58 UTC |