Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: AIM Offline Messaging Bot

by theorbtwo (Prior)
on Jul 22, 2002 at 23:06 UTC ( #184281=note: print w/ replies, xml ) Need Help??

in reply to AIM Offline Messaging Bot

I like the idea. It's a decent implementation of it too, though there are a few places where it could be improved upon: First, there's a bug in your timestamp generation (minutes 0..9 will show up as 01..10, if it's started at exactly 10 minutes after the hour you'll get a warning and nothing after the : in the time.) But it's better done with POSIX::strftime or with localtime(). Also, you should put some of your common text into vairables and use a sepperate sub for your repeated calls to set_info. Remember, when you cut-and-paste a lot, you're probably better off using some form of abstraction to get one master copy and a bunch of references to it.

Confession: It does an Immortal Body good.

Comment on Re: AIM Offline Messaging Bot

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184281]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-11-28 15:11 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (743 votes), past polls