in reply to Life at the Monastery. Chapter 1
"So FouRPlay, what is the regex for getting the last digit of pi?"
That's an easy one:
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"; } [download]
The hard part is assigning the correct value to the scalar $PI.... :)