When I run the following code in command prompt (cmd), I get the "MSWin32", as expected
perl -e "print $^O;"But when I run the same code in powershell, I get nothing.
The following code works though, outputting the same in both shells:
perl -MWin32 -e "print Win32::GetOSName();"This outputs Win10Build 19043 (64-bit)
Is this a bug?
I'm using StrawberryPerl, perl version: v5.32.1 built for MSWin32-x64-multi-thread
In reply to $^O empty in windows powershell by WithABeard
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |