The documentation of the module can be found at the canonical page:
MetaCPAN. It's a bit messy, probably because serial ports are messy. Both methods seem to be described there.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]