Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Future of Perl on Win32?

by explorer (Chaplain)
on Apr 26, 2006 at 15:25 UTC ( [id://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...

Example:

$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.name + " " + $biosinf.smbiosbiosversion foreach ( $nic in $netinfo ) { "NIC = " + $nic.name } foreach ( $cd in $cdrom ) { "CDROM = " + $cd.name }

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/ :-)

      ---
      $world=~s/war/peace/g

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.

    Mike

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://545805]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 11:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found