instead of,sub _update_term_score { my ($self, %args) = @_; # %args = ( # term => search term # doc_id => document id # count => number of times term was found in this document. # ) . . . }
Further, there are subtle conflicts such as not using single quotes for hash key values (that's what I prefer):sub _update_term_score { my ($self, $term, $doc_id, $count) = @_; # term -> search term # doc_id -> document id # count -> number of times term was found in this document +. . . . }
instead of,my %hash_var = ( param1 => 'value 1', param2 => 'value 2', param3 => 'value 3', );
To continue, I'd have to write an extra 2 pages of similar rant and plea for you to read to the end (unlikely eh? :). Therefore, on I go to the actual conclusion and key question...my %hash_var = ( 'param1' => 'value 1', 'param2' => 'value 2', 'param3' => 'value 3', );
"There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith |
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: On maintaining old code and the battle of styles...
by chromatic (Archbishop) on Apr 25, 2002 at 14:42 UTC | |
Re: On maintaining old code and the battle of styles...
by Biker (Priest) on Apr 25, 2002 at 14:45 UTC | |
by pdcawley (Hermit) on Apr 26, 2002 at 06:40 UTC | |
Re: On maintaining old code and the battle of styles...
by andreychek (Parson) on Apr 25, 2002 at 15:04 UTC | |
Re: On maintaining old code and the battle of styles...
by beernuts (Pilgrim) on Apr 25, 2002 at 14:46 UTC | |
Change what you want internally, but not externally...
by RMGir (Prior) on Apr 25, 2002 at 15:05 UTC | |
Re: On maintaining old code and the battle of styles...
by Molt (Chaplain) on Apr 25, 2002 at 21:13 UTC | |
Re: On maintaining old code and the battle of styles...
by talexb (Chancellor) on Apr 26, 2002 at 14:01 UTC |