IWL::String - string helper functions
The IWL::String module provides string helper functions
Encodes the string by replacing each instance of certain characters by one, two, or three escape sequences representing the UTF-8 encoding of the character. Can be unescaped using the decodeURI javascript function
Parameters: STRING - the string to encode
Decodes the string that was previously encoded using encodeString()
Parameters: STRING - the string to decode
Encodes the string by replacing each instance of certain characters by one, two, or three escape sequences representing the UTF-8 encoding of the character. Can be unescaped using the decodeURIComponent javascript function
NOTE: Internet explorer suffers a severe slowdown for decodeURIComponent with large strings. escape(3pm) should be used instead, when not dealing with encoding URI components.
Escapes the string with character semantics. Similar to javascript's escape()
Parameters: STRING - the string to escape, ENCODING - optional, the encoding of the string (defaults to 'utf-8')
Unescapes a string, previously escaped using escape(3pm)
Parameters: STRING - the string to unescape
Converts HTML special characters to entity elements
Parameters: STRING - the string to escape
Converts entity elements to HTML special characters
Randomizes the string by appending an underscore and a random floating point number to it
Parameters: STRING - the string to randomize
Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.