in reply to How to use Labels
BTW, labelled blocks are one way you can create "switch" statements in Perl. Continue down perlsyn to the section named "Basic BLOCKs and Switch Statements" for several examples.
HTH
Updated by VSarkiss:
My bad. Hofmator is right. You can put labels on single statements like your example. I need to test before I hit "submit"....
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How to use Labels
by srawls (Friar) on Jun 19, 2001 at 20:57 UTC |