Closed p5pRT closed 16 years ago
Long story short\, I was able to boil down the problem to a single line (hehe). The perl -e command runs fine on linux\, but returns a compilation error on Windows.
command line perl -e "\$err=256>>8;print\"Error: \$err\n\";"
Linux Output: yor_mgra@yors0353:\~> uname -a Linux yors0353 2.6.18.8-0.7-default #1 SMP Tue Oct 2 17:21:08 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux
yor_mgra@yors0353:\~> perl -e "\$err=256>>8;print\"Error: \$err\n\";" Error: 1
Windows Output c:\>perl -e "\$err=256>>8;print\"Error: \$err\n\";" Can't modify single ref constructor in scalar assignment at -e line 1\, near "8;" Execution of -e aborted due to compilation errors.
Are there any ideas about this\, as this would seem to be a bug with the Windows build?
Graf\, Michael" (via RT) wrote:
Windows Output c:\>perl -e "\$err=256>>8;print\"Error: \$err\n\";" Can't modify single ref constructor in scalar assignment at -e line 1\, near "8;" Execution of -e aborted due to compilation errors.
Are there any ideas about this\, as this would seem to be a bug with the Windows build?
It's just a Windows cmd.exe quoting thing. The following one-liner has the same error:
perl -e "\$a=0"
The Windows shell is actually passing \$a=0 (rather than $a=0) to the Perl interpereter\, which causes the obvious error.
This is fine:
perl -e "$a=0"
The RT System itself - Status changed from 'new' to 'open'
@rgs - Status changed from 'open' to 'rejected'
Migrated from rt.perl.org#52418 (status was 'rejected')
Searchable as RT52418$