Help for this page
#!/bin/bash ssh <remotehost> bash -s <<EOF <local bash script written here> EOF
#!/usr/bin/perl my $output = `ssh <remotehost> bash -s` <<EOF <local bash script written here> EOF