in reply to Re^2: Calling package function returns 1, not data from function
in thread Calling package function returns 1, not data from function

You didn't follow the instructions. The sub should look like:
sub latest { my $late = `ssh root\@10.10.21.15 'cat /usr/local/LATEST_VULN'`; chomp($late); return $late; }
Nothing else should be changed. Well, ok, one thing.
print $lat;
should be changed to
print "$lat\n";

Replies are listed 'Best First'.
Re^4: Calling package function returns 1, not data from function
by kapoor (Novice) on Dec 28, 2009 at 23:00 UTC
    I got the solution.