Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Future of Perl on Win32?

by explorer (Chaplain)
on Apr 26, 2006 at 15:25 UTC ( #545805=note: print w/replies, xml ) Need Help??

in reply to Future of Perl on Win32?

Humm... Is possible Microsoft don't like Perl because it have their Perl?

Today, Microsoft has released RC1 version of PowerShell the .NET-based shell with perl-like syntax... More...


$compsys = get-wmiObject win32_computersystem $biosinf = get-wmiObject win32_bios $netinfo = get-wmiObject win32_networkadapter | where-object { $_.adaptertype -like "802.3" } $cdrom = get-wmiObject win32_cdromdrive "Make = " + $compsys.manufacturer "Model = " + $compsys.model "Bios = " + $ + " " + $biosinf.smbiosbiosversion foreach ( $nic in $netinfo ) { "NIC = " + $ } foreach ( $cd in $cdrom ) { "CDROM = " + $ }

Extracted from PowerShell User Guide:
Special Variables
$_The current pipeline object; used in script blocks, filters, the process clause of functions, where-object, foreach-object and switch.

Ugly notation! :-)

Asociative Array: $<array name> = @{<key1 = item1>; <key2 = item2>;...}

Replies are listed 'Best First'.
Re^2: Future of Perl on Win32?
by explorer (Chaplain) on Apr 26, 2006 at 16:25 UTC

    I am reading the User Guide. Page 38:

    We investigated a number of different options; whether to extend the current CMD.EXE syntax or to modify the current Visual Basic to better enable an interactive use. After looking at many different possibilities, we decided that a new language that was built from the ground up would be best because it would enable us to provide a more consistent environment. We were inspired by concepts in the UNIX shells; other scripting languages such as PERL, PHP, PYTHON and programming languages like C# to create a consistent, intuitive language that is an interactive environment.

    Page 72:

    Similar to the UNIX model, the majority of users will find that the use of commands is sufficient to accomplish what is required. However, there are conditions when existing commands do not provide the required functionality. In these cases, there are generally two choices. First, if the functionality is able to be composed, create a script to provide the necessary functionality. Second, create a new command to provide the needed functionality (much in the same way that the functionality of text parsing utilities for the UNIX system have increased over time and is arguable why PERL, TCL, and other scripting languages developed). Unfortunately, the complexity of creating a new command can be high, and in some cases, the required tools (such as a compiler) are not available.

    For the records... Perl is named 6 times. C#, 14. Java, 0. TCL, 2. Python, 2. Ruby, 1.

      Somebody should point out that they need to do a s/PERL/Perl/ :-)


Re^2: Future of Perl on Win32?
by bioMan (Beadle) on Apr 26, 2006 at 20:09 UTC

    Looks like the misbegotten love child of Perl, Python, and VB.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://545805]
and God said, "Let Newton be!"...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2018-05-22 14:38 GMT
Find Nodes?
    Voting Booth?