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.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|