/usr/src/perl/pod/perlfaq8/How_do_I_make_my_program_run_wit.pod

How do I make my program run with sh and csh?

See the eg/nih script (part of the perl source distribution).