http://qs321.pair.com?node_id=11148286


in reply to $^O empty in windows powershell

I guess that PowerShell uses double quotes like Perl does. Maybe try single quotes?

perl -e 'print $^O;'

Replies are listed 'Best First'.
Re^2: $^O empty in windows powershell
by WithABeard (Sexton) on Nov 21, 2022 at 11:58 UTC

    Right you are! How typical of Microsoft to not be consistent, atleast this is an improvement :P