Unsurprisingly there are sample scripts in the sample directory.
In reply to Re^9: Advice on running perl program over ssh by hippo in thread Advice on running perl program over ssh by Amblikai