in reply to Re: SSH to Unix and search files for string
in thread SSH to Unix and search files for string

it's probably just a typo in your code, but it's
my ($host,$file) = split /:/,$spec,2;
and not:
my ($host,$file) = split $spec,/:/,2;
;-)

to ask a question is a moment of shame
to remain ignorant is a lifelong shame