Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
From some example scripts, I'd say that Perl is one of several direct and indirect influences. For comparison, look at how they use Perl in their examples here here.

There's even an example of a grep-like tool that looks like Get-Shapes | Where-Object {$_.Color –eq "Orange"}, complete with '$_'. That's found in the PowerShell Manual and the Where-Object doc is at the 'cmdlets' docs.

There's also some PHP touches to the syntax that I see. It's also inspired by actual shells, as you can dot-source other files.

It appears that anything written in PowerShell is going to emit objects, but that it's smart enough to handle text instead when confronted with scripts in other languages.

The interview with the chief architect of the package, Jeffrey Snover, says he likes several languages, including Perl, but that they all have shortcomings he's trying to alleviate in PowerShell and the related utilities.

JS: Like most people, I have a love/hate relationship with the existing tools. I love the interactivity and composability of KSH/utilities but I hate their inconsistency and the need to do text parsing. I love the power and programmability of PERL and TCL but I hate their idiosyncrasies and their lack of a good interactive experience. I love the consistency and production-orientation of VMS DCL and AS400’s CL but I hate their composability model. I love the UNIX model of surfacing everything through the filesystem but I hate the anemic semantics of the filesystem.
I have to say, the language itself doesn't look bad. PowerShell, the terminal, and some other tools are aimed primarily at Windows admins, though, and not at general-purpose programming tasks. The docs, examples, and interview responses all seem to point to WSH, VB for Applications -- er, I mean VBScript, and such as the comparable technologies. I'd expect about the same support for developers as with those toola -- that is, not much compared to Visual C++ and Visual Basic .NET environments, documentation, and updates.

In reply to Re: Any (Active)perl influence on PowerShell? by mr_mischief
in thread Any (Active)perl influence on PowerShell? by sg

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-25 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found