Stem::switch

Stem::Switch has several functions:

new 
msg_in 
data_in 
map_cmd 
info_cmd 
status_cmd 

new

new creates a new Stem::Switch object, parsing $attr_spec and any arguments passed to it.

It returns the new object.