Is there better way to replace these case statement?

case cmd
          when /^Astro$/
                toolName = 'astro'

          when /^core/
                toolName = 'coretools'

          when /^(fm_shell|formality)$/
                toolName = 'fm'

          when /^gca_shell$/
                toolName = 'gcas'
    ......

          when /^xa/
                toolName = 'xa'

          else
                toolName = ''

end

-- 
Posted via http://www.ruby-forum.com/.