
Bot::Net::Util - miscellaneous utility functions

my @args = Bot::Net::Util->parse_bot_command($message);

Provides utility functions for use elsewhere.

Returns an array of words found in the given message. This tries to sensibly break up a command. The string will be split on whitespace or grouped by quotes.
Quoted strings may contain quotes by containing a double-quote to escape it. For example,
tell 'bob''s friend' """Hello World"""
would become:
('tell', "bob's friend", '"Hello World"')

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

Copyright 2007 Boomer Consulting, Inc. All Rights Reserved.
This program is free software and may be modified and distributed under the same terms as Perl itself.