I am on linux, works fine for me... can you give us more details (OS, perl version, more example code and output, any error messages you are getting in your linux machine, maybe dump out your @splitdata with Data::Dumper?).Also check out comments by moritz below...