my $args = new Getopt::Declare <<'EOPARAM'; -k EOPARAM if ( $args->{'-k'} ) { print "Using value: ", $args->{'-k'}{''}; }