Jason said:
Hi Thomas
When I run this subroutine, I get this error:
Undefined subroutine &main::in called at script.cgi line 19
More specifically, the error occurs on this line:
my @inst = in($wmi->InstancesOf('Win32_ComputerSystem'));
Am I doing something wrongly?
You have to load Win32::OLE with
use Win32::OLE qw/in/;
Please read the docs for Win32::OLE for further informations ( in() is
documented in the section "Overloading")
Thomas
--
$/=$,,$_=<DATA>,s,(.*),$1,see;__END__
s,^(.*\043),,mg,@_=map{[split'']}split;{#>J~.>_an~>>e~......>r~
$_=$_[$%][$"];y,<~>^,-++-,?{$/=--$|?'"':#..u.t.^.o.P.r.>ha~.e..
'%',s,(.),\$$/$1=1,,$;=$_}:/\w/?{y,_, ,,#..>s^~ht<._..._..c....
print}:y,.,,||last,,,,,,$_=$;;eval,redo}#.....>.e.r^.>l^..>k^.-