Box A's perl script calling box B's shell script

Hi all,

i have a perl script one server. I am running a cronjob to execute my perl script.

#! /usr/bin/perl
...
...
...
#call a shell script on another server 

How can i accomplish #?
Do i have to issue a system (" ssh -l username server | shellscript.sh") in my shell script? or is there a cleaner way to do it?

one way is to use Net::Telnet module , if you enabled telnet on Box B.
an example here

or you could use Net::SSH::Perl module
example here