For instance, that's VBScript-ish:
foreach my $objItem (in $colItems) {
That should be either (@$colItems) or (keys %$colItems) or such depending on what type of reference $colItems is. Use e.g. Data::Dumper to see what that is.
This doesn't parse properly, either:
sub WMIDateStringToDate(strDate) { return "blah ER"; }
This construct looks like JavaScript. In perl, you may put subroutine prototypes in parens after a subroutine identifier, but you generally don't want to, because you don't need that. And you don't name your parameters to a sub.
So that is
which, given its usefulness and no being called anywhere, you could just drop entirely.sub WMIDateStringToDate { return "blah ER"; }
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: Loging into a series of windows machines
by shmem
in thread Loging into a series of windows machines
by jarthda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |