remove `each @` for compatibility with perl v5.10
parent
7aef13b7e3
commit
82d0ecf88e
|
@ -130,7 +130,9 @@ sub render {
|
|||
my $text = "$formatted_value\x{2126} ($ohms) resistor colors:";
|
||||
my $html = "$formatted_valueΩ ($ohms) resistor colors:";
|
||||
|
||||
while (my ($index, $digit) = each @$digits) {
|
||||
#while (my ($index, $digit) = each @$digits) {
|
||||
my $index = 0;
|
||||
foreach my $digit (@$digits) {
|
||||
if (exists $digits_to_colors{$digit}) {
|
||||
my $name = $digits_to_colors{$digit}{name};
|
||||
my $hex = $digits_to_colors{$digit}{hex};
|
||||
|
@ -163,6 +165,7 @@ sub render {
|
|||
} else {
|
||||
return;
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
$html .= "<br/>"
|
||||
. "<a href='http://resisto.rs/#$formatted_value' style='font-size:92.8%'>"
|
||||
|
|
Loading…
Reference in New Issue