Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Life at the Monastery. Chapter 1

by lemming (Priest)
on Dec 07, 2000 at 20:53 UTC ( #45534=note: print w/replies, xml ) Need Help??


in reply to Life at the Monastery. Chapter 1

I got to thinking from current CB topics:

If there is a Torture Chamber at the Monastery one would see scenes like this:

"So FouRPlay, what is the regex for getting the last digit of pi?"

Replies are listed 'Best First'.
Re: Re: Life at the Monastery. Chapter 1
by turnstep (Parson) on Dec 07, 2000 at 22:23 UTC

    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.... :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://45534]
help
Chatterbox?
[1nickt]: hippo You suggest this as a transport agent for Email::Sender, or ...? Just for the record Email::Sender:: Transport::SMTP has SSL/TLS support built-in (and some shiny RJBS extras like "partial success" ...)
[Perl300]: ok

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2017-10-17 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (234 votes). Check out past polls.

    Notices?