Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://184281]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2018-05-23 06:08 GMT
Find Nodes?
    Voting Booth?