Subject: | GRID::Machine correction |
Date: | Wed, 22 Aug 2007 14:55:49 -0400 |
To: | bug-GRID-Machine [...] rt.cpan.org |
From: | Dmitriy Kargapolov <xoid [...] eml.cc> |
Hi,
First of all thanks for nice module - I did similar things (perl - ssh -
perl) "manually" and now pretty much routine coding well done in
GRID::Machine.
I found one almost bug - almost since it's not fatal, but annoying with
warnings.
When use remotelibs property in constructor more than once (in a loop
for example) internal code (Machine.pm line 637) adds the list of remote
libraries to private static list @Remote_modules creating duplicate
entries, so when code is transferred to remote machine(s) you'll get
warnings about things already defined.
I'm not sure why @Remote_modules is not property of object _instance_ -
that could solve the problem.
Also I have suggestions about adding 'callbacks', when remote code can
call local subroutines - I did this as light addition to GRID::Machine
in my code - let me know if you are interested in.
Sincerely,
Dmitriy Kargapolov.