note
turnstep
<P>That's an easy one:</P>
<CODE>
if ($PI =~ m/(\d)$/) {
print "The last digit is $1.\n";
}
else {
print "Seems that pi does not end in a digit. Who knew?\n";
}
</CODE>
<P>The hard part is assigning the correct value to
the scalar $PI.... :)</P>
45399
45534