in reply to Constructive criticism of a dictionary / text comparison script
Initializing variables to an empty string is generally no advantage. Why not collapse those declarations into one line?
my ( $help, $man, $version, $token_debug, $glossary_output, $dictionar +y_output ); # or my ( $help, $man, $version, $token_debug, $glossary_output, $dictionar +y_output ) = ( '', '', '', '', '', '' );
GetOptions will also take a reference to a hash as its first argument, instead of all the variables. Much more concise and you don't have to worry three pages down what that variable was called.
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Constructive criticism of a dictionary / text comparison script
by allolex (Curate) on Aug 30, 2003 at 05:58 UTC | |
Re: Re: Constructive criticism of a dictionary / text comparison script
by PodMaster (Abbot) on Oct 13, 2003 at 10:57 UTC |
In Section
Seekers of Perl Wisdom