in reply to Problem enumerating a foreach loop using Win32::OLE->GetObject
the foreach $obj (in $col syntax is not a perl syntax; it's a WIN32::OLE one.
Due to the weirdness of the matter (win32) and also a bit aged perl syntax used building the interface of the modules in the win32 namespace (I thanks many time their authors for having wrote them..) some misunderstang can occour.
In this case you have a container $col that is not a simple perl datastructure but an abstraction made by the module. Or at least i understand it this way.
See here to have in explained.
L*
|
|---|