Issue Using Perl for Windows and Custom Script Templates

Issue Using Perl for Windows and Custom Script Templates

I have an issue where I have OpManager installed on a Windows 2003 server and am trying to use Perl to write a custom script template.  The issue I have is that whenever I try to use a "foreach" loop, the script just hangs and eventually times out.
 
The script runs fine when ran manually.  It only fails when ran through OpManager.
 
Has anyone else seen this issue?  If so, did you get it resolved?
 
Thanks!