On Mon, 20 Aug 2001 [EMAIL PROTECTED] wrote:
> What is the best perl example of a k-shell case statement as follows:
>
> case "$VAR1"
> in
> 1 )
> statements
> ;;
> 2)
> statements
> ;;
> * )
> other statements
> esac
Perl does not have a built in case statement (also known as a switch
statement in the C/C++/Java world). You can simulate it in Perl in a
variety of ways which have been documented very well elsewhere. Here's
the first place you should start, by typing this at your command-line:
perldoc -q switch
You'll probably also want to check out the perlsyn document (type perldoc
perlsyn) if you aren't familiar with Perl syntax. And if you aren't
familiar with Perl syntax, you should get one of the books listed on
http://learn.perl.org and start studying it!!!!
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
You will be run over by a bus.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]