#!/usr/bin/env perl use MyApp; my $app = MyApp->new_with_options(); $app->print_options; # ... rest of the script here exit;