SMS::Handler::Utils - Utility functions used by some SMS::Handler modules
use SMS::Handler::Utils; ...
This module provides various utility functions for use by
The exported functions are:
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.
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.
All the methods cited above can be exported to the caller.
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.
$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
Luis E. Muñoz <email@example.com>