It's got nothing to do with perl.
It's the different quoting methods used by your shells (probably bash on Linux, and cmd.exe on Windows). If you put the code in a file, and did something like perl foo.pl test23.txt, it would work equally well on both OS's
In reply to Re: Perl Syntax Variation Between Linux/Windows when -e flag is used!
by davis
in thread Perl Syntax Variation Between Linux/Windows when -e flag is used!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |