Hello WithABeard and welcome to the monastery and to the wonderful world of Perl!,
interesting finding, I tried it and.. more doubts coming out
PS C:\Users\me> Get-Host | Select-Object Version
Version
-------
5.1.19041.1682
PS C:\Users\me> C:\EX_D\ulisseDUE\perl5.24.64bit\perl\bin\perl.exe -e
+"print $^O;"
PS C:\Users\me>
+ # no output as you noticed
PS C:\Users\me> C:\EX_D\ulisseDUE\perl5.24.64bit\perl\bin\perl.exe -e
+'print $^O;'
MSWin32
+ # ok with single quotes.. meh
But what happens if I cast portableshell.bat coming within my portable strawberry perl?
PS C:\Users\me> C:\EX_D\ulisseDUE\perl5.24.64bit\portableshell.bat
----------------------------------------------
Welcome to Strawberry Perl Portable Edition!
* URL - http://www.strawberryperl.com/
* see README.TXT for more info
----------------------------------------------
Perl executable: C:\EX_D\ulisseDUE\perl5.24.64bit\perl\bin\perl.exe
Perl version : 5.24.2 / MSWin32-x64-multi-thread
C:\Users\me>perl -e "print $^O;"
MSWin32 #
+ good 'ol expected behaviour
C:\Users\me>
C:\Users\me>
C:\Users\me>perl -e 'print $^O;'
Can't find string terminator "'" anywhere before EOF at -e line 1. #
+ no more single quote allowed
More: the powershell console is no more a powershell console! Get-Host gives me command not found
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
|