GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
String::Parity(3) User Contributed Perl Documentation String::Parity(3)

String::Parity - parity (odd/even/mark/space) handling functions

 use String::Parity;
 use String::Parity qw(:DEFAULT /show/);

Copies the elements of LIST to a new list and converts the new elements to strings of bytes with even parity. In array context returns the new list. In scalar context joins the elements of the new list into a single string and returns the string.
Like setEvenParity function, but converts to strings with odd parity.
Like setEvenParity function, but converts to strings with space (High bit cleared) parity.
Like setEvenParity function, but converts to strings with mark (High bit set) parity.
Returns the number of even parity bytes in the elements of LIST.
Returns the number of odd parity bytes in the elements of LIST.
Returns the number of space parity bytes in the elements of LIST.
Returns the number of mark parity bytes in the elements of LIST.
Returns TRUE if the LIST contains no byte with odd parity, FALSE otherwise.
Returns TRUE if the LIST contains no byte with even parity, FALSE otherwise.
Returns TRUE if the LIST contains no byte with mark parity, FALSE otherwise.
Returns TRUE if the LIST contains no byte with space parity, FALSE otherwise.
Like setEvenParity function, but converts bytes with even parity to 'e' and other bytes to 'o'. The function showParity must be imported by a specialised import list.
Like setEvenParity function, but converts bytes with space parity to 's' and other bytes to 'm'. The function showMarkSpace must be imported by a specialised import list.

Don't use this module unless you have to communicate with some old device or protocol. Please make your application 8 bit clean and use the internationally standardised ISO-8859-1 character set.

I don't know of any other modules that provide similar functionality. If you do, please let me know so I can update this section.

<https://github.com/neilb/String-Parity>

This module was written by Winfried Koenig.

Updates to follow modern CPAN conventions by Neil Bowers (NEILB).

This software is copyright (c) 1995 by Winfried Koenig.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2015-11-06 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.