in reply to something like switch(case) in Perl
SWITCH: foreach (keys %house){ #Note: the key is stuffed in $_ /^person$/ and do { print "My name "; #Note: the Regex works on $_ p_CC(); next SWITCH; } /^AB$/ and do { print "AB "; p_AB(); next SWITCH;} }
|
grep> cd pub grep> more beer |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: something like switch(case) in Perl
by agustina_s (Sexton) on Jan 23, 2002 at 08:49 UTC | |
|
Re: Re: something like switch(case) in Perl
by agustina_s (Sexton) on Jan 24, 2002 at 07:09 UTC | |
|
Re: Re: something like switch(case) in Perl
by grep (Monsignor) on Jan 24, 2002 at 09:24 UTC |