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>;...}
In reply to Re: Future of Perl on Win32?
by explorer
in thread Future of Perl on Win32?
by bowei_99
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |