in reply to Type mismatch in Win32::OLE method call with multiple args
The problem is here:
You're assigning a scalar ($_) to a list. That will leave $off and $count as undef, which is what's causing the error. (Even $on can be undefined, if $_ is.)my ($on, $off, $count) = $_; # contains args
The fix depends on what's in $_: whether you need to split it, or use a different variable (maybe @_), or ... .
Update
Added some clarification
|
|---|