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:
| $_ | 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 | |
by demerphq (Chancellor) on Apr 26, 2006 at 17:41 UTC | |
by chanio (Priest) on Apr 26, 2006 at 23:50 UTC | |
|
Re^2: Future of Perl on Win32?
by bioMan (Beadle) on Apr 26, 2006 at 20:09 UTC |