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 reply to Re: Re: Life at the Monastery. Chapter 1
by turnstep
in thread Life at the Monastery. Chapter 1
by wombat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |