I need some more help, the above code selects the first item:

 Code:
$ITAPPS = 
      "Location1 - SERVER1 - Action1,Location1,SERVER1,Action1",
      "Location1 - SERVER1 - Action2,Location1,SERVER1,Action2"


So the list will show Location 1 - SERVER1 - Action1 and Location 1 - SERVER1 - Action2. I also need it to return the other information like
$LOCATION = Location1, $SERVER = SERVER1, $ACTION = Action1 or $ACTION = Action2...