in reply to Perl script works on Centos but not Ubuntu

What version of Perl do you run on each server? 32 versus 64 bit?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]