1Regexp::Common::lingua(U3s)er Contributed Perl DocumentatRieognexp::Common::lingua(3)
2
3
4
6 Regexp::Common::lingua -- provide regexes for language related stuff.
7
9 use Regexp::Common qw /lingua/;
10
11 while (<>) {
12 /^$RE{lingua}{palindrome}$/ and print "is a palindrome\n";
13 }
14
16 Please consult the manual of Regexp::Common for a general description
17 of the works of this interface.
18
19 Do not use this module directly, but load it via Regexp::Common.
20
21 $RE{lingua}{palindrome}
22
23 Returns a pattern that recognizes a palindrome, a string that is the
24 same if you reverse it. By default, it only matches strings consisting
25 of letters, but this can be changed using the "{-chars}" option. This
26 option takes a character class (default is "[A-Za-z]") as argument.
27
28 If "{-keep}" is used, only $1 will be set, and set to the entire match.
29
30 This pattern requires at least perl 5.6.0.
31
33 $Log: lingua.pm,v $
34 Revision 2.105 2005/03/16 00:23:57 abigail
35 Removed 'use Carp'
36
37 Revision 2.104 2003/07/04 13:34:05 abigail
38 Fixed assignment to
39
40 Revision 2.103 2003/03/25 23:46:29 abigail
41 Removed outer braces
42
43 Revision 2.102 2003/03/25 23:20:02 abigail
44 Added documentation
45
46 Revision 2.101 2003/02/01 22:55:31 abigail
47 Changed Copyright years
48
49 Revision 2.100 2003/01/21 23:19:40 abigail
50 The whole world understands RCS/CVS version numbers, that 1.9 is an
51 older version than 1.10. Except CPAN. Curse the idiot(s) who think
52 that version numbers are floats (in which universe do floats have
53 more than one decimal dot?).
54 Everything is bumped to version 2.100 because CPAN couldn't deal
55 with the fact one file had version 1.10.
56
57 Revision 1.2 2003/01/01 19:11:29 abigail
58 Fixed problem with having different palindrome patterns in same program
59
60 Revision 1.1 2003/01/01 17:05:56 abigail
61 First version
62
64 Regexp::Common for a general description of how to use this interface.
65
67 Damian Conway (damian@conway.org)
68
70 This package is maintained by Abigail (regexp-common@abigail.nl).
71
73 Many regexes are missing. Send them in to regexp-common@abigail.nl.
74
76 Copyright (c) 2001 - 2003, Damian Conway. All Rights Reserved.
77 This module is free software. It may be used, redistributed
78 and/or modified under the terms of the Perl Artistic License
79 (see http://www.perl.com/perl/misc/Artistic.html)
80
81
82
83perl v5.8.8 2003-03-23 Regexp::Common::lingua(3)