Forum Discussion
hooleylist
Jun 12, 2012Cirrostratus
What if I forget the datagroup idea and just use text matching like this...
You could use a switch statement to evaluate multiple strings that aren't in a data group:
switch -glob -- [string tolower $ptr] {
"*wtsappprod" {
pool prod_pool
}
"*wtsapp" {
pool preprod_pool
}
}
I should have the caching -ptr example ready in a little while.
Aaron