Luis Muñoz > SMS-Handler > SMS::Handler::Utils

Download:
SMS-Handler-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: Revision: 1.4   Source  

NAME ^

SMS::Handler::Utils - Utility functions used by some SMS::Handler modules

SYNOPSIS ^

  use SMS::Handler::Utils;

  ...

DESCRIPTION ^

This module provides various utility functions for use by SMS::Handler::... modules.

The exported functions are:

Split($msg)

Separates an incoming SMS into a command and body section. It is separated either by the first newline or the first occurrence of two consecutive spaces.

Split_msg($maxlen, \$text)

Splits the given message (passed as a reference to a scalar) into $maxlen characters wide messages. Returns an array of scalar references pointing to each chunk, which include a counter.

EXPORT

All the methods cited above can be exported to the caller.

LICENSE AND WARRANTY ^

This code comes with no warranty of any kind. The author cannot be held liable for anything arising of the use of this code under no circumstances.

This code is released under the terms and conditions of the GPL. Please see the file LICENSE that accompains this distribution for more specific information.

This code is (c) 2002 Luis E. Muñoz.

HISTORY ^

$Log: Utils.pm,v $ Revision 1.4 2003/01/03 02:03:34 lem Minor improvement in Utils::Split. Tests fixed accordingly

Revision 1.3 2003/01/03 00:52:46 lem Fixed SMS-splitting bug when delimiting message and body with two spaces. Added tests for this

Revision 1.2 2003/01/02 23:55:22 lem Fixed delimiter bug in ::Utils::Split. Added tests for this bug

Revision 1.1 2002/12/27 19:43:42 lem Added ::Dispatcher and ::Utils to better distribute code. This should make easier the writting of new methods easier

AUTHOR ^

Luis E. Muñoz <luismunoz@cpan.org>

SEE ALSO ^

SMS::Handler, perl(1).

syntax highlighting: