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
Hello Robert,
Tuesday, August 21, 2001, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Ric> What is the best perl example of a k-shell case statement as follows:
Ric> case "$VAR1"
Ric> in
take a look at "Basic BLOCKs and Switch Statements" in
perldoc perlsyn
Best wishes,
Maxim
perldoc -q switch
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 8/20/2001 4:25 PM
Subject: k-shell case statement
What is the best perl example of a k-shell case statement as follows:
case "$VAR1"
in
1 )
statements
;;
2)
statements