NAME

String::ParseWords - Parse a string into logical words

SYNOPSIS

use String::ParseWords;

$string = q("Word A" Word B);
$words = String::ParseWords::parse($string);
foreach (@$words) { print "$_\n"; }

OUTPUT:
 Word A
 Word
 B

DESCRIPTION

String::ParseWords is designed to parse logical words from a string. Logical words are defined as sets of characters between double quotes or sets of characters between whitespace.

One practical use for this module is to break apart group names for authorization within apache 'require' directives.

SUBROUTINES

parse ( STRING )

Returns a reference to an anonymous array that contains the parsed words.

AUTHOR

Christian Gilmore (cgilmore@tivoli.com)

SEE ALSO

COPYRIGHT

Copyright (C) 2000, International Business Machines Corporation and others. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the terms of the IBM Public License.