<?xml version="1.0" encoding="windows-1252"?>
<node id="991677" title="Re^2: Cycle Gear Ratio Calculator" created="2012-09-04 14:30:28" updated="2012-09-04 14:30:28">
<type id="11">
note</type>
<author id="989611">
fatmac</author>
<data>
<field name="doctext">
That was interesting, especially as they also were reading the same book when they coded it.
This is my single gear calculator code:
&lt;code&gt;#!/usr/bin/perl
use strict;
use warnings;

print "\nGear Calculator\n\n";

print "Enter Wheelsize (inches): ";
my $wheel = &lt;&gt;;

print "Enter Chainwheel Teeth: ";
my $teeth = &lt;&gt;;

print "Enter Cog Teeth: ";
my $cog = &lt;&gt;;

my $gear = $wheel * $teeth / $cog;

print "\nYour gear is: ", $gear, "\n\n";&lt;/code&gt;</field>
<field name="root_node">
991577</field>
<field name="parent_node">
991668</field>
</data>
</node>
