in reply to Re: Life at the Monastery. Chapter 1
in thread Life at the Monastery. Chapter 1
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"; }
The hard part is assigning the correct value to the scalar $PI.... :)
|
---|
In Section
Meditations