Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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



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

the SMS::Handler manpage, perl(1).

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy