use strict; use warnings; main(); # always have an exit from a script, it will save you grief! exit; sub main { ... # do some really cool stuff here # always have a known return value, just falling off the end WILL bite # bite you someday. return; } __END__