http://www.perlmonks.org?node_id=436254


in reply to Re: [off-site] Perl snippets at Microsoft
in thread [off-site] Perl snippets at Microsoft

foreach my $foo ( in $stuff ) { ... } ... apparently Win32::OLE defines in()?

Yes it does:

use Win32::OLE('in'); ...

in(COLLECTION) - If COLLECTION is an OLE collection object then in $COLLECTION returns a list of all members of the collection. This is a shortcut for Win32::OLE::Enum-All($COLLECTION).