Jump to content

Autoit's 'select, Case'


Recommended Posts

I know this isn't an Auto-it question, but being fine group of support personnel we have here, I thought someone might be able to help me out. (searching books and the web for 'perl case' or 'perl select' don't yield any viable results. :)

In Au3 we have;

Select

Case $A = "String1"

....

Case $A = 4

....

Case $A = $B

....

EndSelect

Is there a Perl equivalent?

(I know of if, if else, elsif, but for my purpose these appear to be very cumbersome, and limiting.)

Thanks for your time in the 3R's; Reading, Researching, & Replying.

Van

Link to comment
Share on other sites

I know this isn't an Auto-it question, but being fine group of support personnel we have here, I thought someone might be able to help me out. (searching books and the web for 'perl case' or 'perl select' don't yield any viable results. :)

In Au3 we have;

Select

Case $A = "String1"

....

Case $A = 4

....

Case $A = $B

....

EndSelect

Is there a Perl equivalent?

(I know of if, if else, elsif, but for my purpose these appear to be very cumbersome, and limiting.)

Thanks for your time in the 3R's; Reading, Researching, & Replying.

Van

it's been a long time since i've played with perl, but most languages will have atleast 1 of either select case, or switch case.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...