develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH] h2xs

Thread Previous | Thread Next
From:
Abigail
Date:
July 11, 2001 17:34
Subject:
Re: [PATCH] h2xs
Message ID:
20010712003147.3964.qmail@foad.org
On Sun, Jul 08, 2001 at 12:25:56PM +0100, Jonathan Stowe wrote:
> On Sat, 7 Jul 2001, Hugo van der Sanden wrote:
> 
> > Time to go for --longoption style, perhaps?
> 
> Something like this perhaps :
> 
>  use vars qw($opt_A $opt_C $opt_F $opt_M $opt_O $opt_P $opt_X $opt_a $opt_c
>              $opt_d $opt_f $opt_h $opt_k $opt_m $opt_n $opt_o $opt_p $opt_s
>              $opt_v $opt_x $opt_b $opt_t);

No reason for them to be package vars, is there?

> +my %options = (
> +                'omit_autoload|A+'   => \$opt_A,

                   'omit_autoload|A+'   => \my $opt_A,

etc. should work fine too.



Abigail

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About