Tiny mistake, BIG problem
Just in case any of you were wondering, when you're working in Perl, building a select box of shipping rates, there's a HUGE difference between this:
<code>
foreach my $key (sort {$rates->{$a} <=> $rates->{$b}} keys %$rates) {
$option_list .= '<option value="' . $ups->servicenames($key) . $rates->{$key} . "\">$key - $rates->{$key}</option>\n";
}
</code>
And:<code>
foreach my $key (sort {$rates->{$a} <=> $rates->{$b}} keys %$rates) {
$option_list .= '<option value="' . $ups->servicenames($key) . $rates->{$key} "\">$key - $rates->{$key}</option>\n";
}
</code>
One dot makes all the difference between "runs" and "not runs". That dot is the difference between "happy customer" and "SAD customer".
What obnoxious little spelling errors have YOU programmed recently?
|