in reply to 2D array in Perl

Perhaps you have different versions on Perl installed on windows and linux:
perl -v

Tip #1 from the Basic debugging checklist: diagnostics