/[pcre]/code/tags/pcre-3.5/doc/perltest.txt
ViewVC logotype

Contents of /code/tags/pcre-3.5/doc/perltest.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (hide annotations) (download)
Sat Feb 24 21:39:33 2007 UTC (7 years, 1 month ago) by nigel
Original Path: code/trunk/doc/perltest.txt
File MIME type: text/plain
File size: 1480 byte(s)
Load pcre-3.3 into code/trunk.

1 nigel 41 The perltest program
2     --------------------
3    
4     The perltest program tests Perl's regular expressions; it has the same
5     specification as pcretest, and so can be given identical input, except that
6     input patterns can be followed only by Perl's lower case modifiers and /+ (as
7     used by pcretest), which is recognized and handled by the program.
8    
9     The data lines are processed as Perl double-quoted strings, so if they contain
10     " \ $ or @ characters, these have to be escaped. For this reason, all such
11     characters in testinput1 and testinput3 are escaped so that they can be used
12     for perltest as well as for pcretest, and the special upper case modifiers such
13     as /A that pcretest recognizes are not used in these files. The output should
14     be identical, apart from the initial identifying banner.
15    
16 nigel 49 For testing UTF-8 features, an alternative form of perltest, called perltest8,
17     is supplied. This requires Perl 5.6 or higher. It recognizes the special
18     modifier /8 that pcretest uses to invoke UTF-8 functionality. The testinput5
19     file can be fed to perltest8.
20    
21 nigel 41 The testinput2 and testinput4 files are not suitable for feeding to perltest,
22     since they do make use of the special upper case modifiers and escapes that
23     pcretest uses to test some features of PCRE. The first of these files also
24     contains malformed regular expressions, in order to check that PCRE diagnoses
25 nigel 49 them correctly. Similarly, testinput6 tests UTF-8 features that do not relate
26     to Perl.
27 nigel 41
28     Philip Hazel <ph10@cam.ac.uk>
29 nigel 49 August 2000

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12