golden hour
/usr/share/perl5/pod
⬆️ Go Up
Upload
File/Folder
Size
Actions
a2p.pod
5.96 KB
Del
OK
perl.pod
15.43 KB
Del
OK
perl5004delta.pod
54.92 KB
Del
OK
perl5005delta.pod
33.48 KB
Del
OK
perl5100delta.pod
53.41 KB
Del
OK
perl5101delta.pod
42.86 KB
Del
OK
perl5120delta.pod
87.19 KB
Del
OK
perl5121delta.pod
9.91 KB
Del
OK
perl5122delta.pod
9.38 KB
Del
OK
perl5123delta.pod
4 KB
Del
OK
perl5124delta.pod
3.59 KB
Del
OK
perl5140delta.pod
140.94 KB
Del
OK
perl5141delta.pod
7.78 KB
Del
OK
perl5142delta.pod
6.73 KB
Del
OK
perl5143delta.pod
7.58 KB
Del
OK
perl5160delta.pod
130.52 KB
Del
OK
perl5161delta.pod
6 KB
Del
OK
perl5162delta.pod
3.51 KB
Del
OK
perl5163delta.pod
3.99 KB
Del
OK
perl561delta.pod
121.79 KB
Del
OK
perl56delta.pod
104.68 KB
Del
OK
perl581delta.pod
37.17 KB
Del
OK
perl582delta.pod
4.37 KB
Del
OK
perl583delta.pod
6.19 KB
Del
OK
perl584delta.pod
7.19 KB
Del
OK
perl585delta.pod
5.75 KB
Del
OK
perl586delta.pod
4.54 KB
Del
OK
perl587delta.pod
8.16 KB
Del
OK
perl588delta.pod
24.68 KB
Del
OK
perl589delta.pod
52.64 KB
Del
OK
perl58delta.pod
112.21 KB
Del
OK
perlaix.pod
18.77 KB
Del
OK
perlamiga.pod
6.87 KB
Del
OK
perlapi.pod
315.46 KB
Del
OK
perlapio.pod
18.88 KB
Del
OK
perlartistic.pod
6.85 KB
Del
OK
perlbeos.pod
2.87 KB
Del
OK
perlbook.pod
7.19 KB
Del
OK
perlboot.pod
183 B
Del
OK
perlbot.pod
182 B
Del
OK
perlbs2000.pod
7.73 KB
Del
OK
perlcall.pod
54.03 KB
Del
OK
perlce.pod
8.72 KB
Del
OK
perlcheat.pod
4.39 KB
Del
OK
perlclib.pod
7.5 KB
Del
OK
perlcn.pod
4.82 KB
Del
OK
perlcommunity.pod
6.29 KB
Del
OK
perlcygwin.pod
27.17 KB
Del
OK
perldata.pod
36.33 KB
Del
OK
perldbmfilter.pod
4.86 KB
Del
OK
perldebguts.pod
36.79 KB
Del
OK
perldebtut.pod
20.79 KB
Del
OK
perldebug.pod
38.15 KB
Del
OK
perldelta.pod
3.99 KB
Del
OK
perldgux.pod
2.75 KB
Del
OK
perldiag.pod
207.82 KB
Del
OK
perldos.pod
10.28 KB
Del
OK
perldsc.pod
24.84 KB
Del
OK
perldtrace.pod
6.21 KB
Del
OK
perlebcdic.pod
67.61 KB
Del
OK
perlembed.pod
35.21 KB
Del
OK
perlepoc.pod
3.57 KB
Del
OK
perlexperiment.pod
4.84 KB
Del
OK
perlfaq.pod
22.01 KB
Del
OK
perlfaq1.pod
13.52 KB
Del
OK
perlfaq2.pod
9.28 KB
Del
OK
perlfaq3.pod
37.46 KB
Del
OK
perlfaq4.pod
87.39 KB
Del
OK
perlfaq5.pod
54.11 KB
Del
OK
perlfaq6.pod
38.66 KB
Del
OK
perlfaq7.pod
36.35 KB
Del
OK
perlfaq8.pod
48.28 KB
Del
OK
perlfaq9.pod
14.71 KB
Del
OK
perlfork.pod
12.78 KB
Del
OK
perlform.pod
16.29 KB
Del
OK
perlfreebsd.pod
1.55 KB
Del
OK
perlfunc.pod
338.43 KB
Del
OK
perlgit.pod
29.75 KB
Del
OK
perlglossary.pod
110.66 KB
Del
OK
perlgpl.pod
13.54 KB
Del
OK
perlguts.pod
111.66 KB
Del
OK
perlhack.pod
35.03 KB
Del
OK
perlhacktips.pod
45.5 KB
Del
OK
perlhacktut.pod
6.07 KB
Del
OK
perlhaiku.pod
1.47 KB
Del
OK
perlhist.pod
43.32 KB
Del
OK
perlhpux.pod
28.07 KB
Del
OK
perlhurd.pod
1.94 KB
Del
OK
perlintern.pod
42.53 KB
Del
OK
perlinterp.pod
30 KB
Del
OK
perlintro.pod
22.08 KB
Del
OK
perliol.pod
33.03 KB
Del
OK
perlipc.pod
70.17 KB
Del
OK
perlirix.pod
4.29 KB
Del
OK
perljp.pod
7.57 KB
Del
OK
perlko.pod
7.52 KB
Del
OK
perllexwarn.pod
14.61 KB
Del
OK
perllinux.pod
1.45 KB
Del
OK
perllocale.pod
51.43 KB
Del
OK
perllol.pod
10.93 KB
Del
OK
perlmacos.pod
1001 B
Del
OK
perlmacosx.pod
10.4 KB
Del
OK
perlmod.pod
24.04 KB
Del
OK
perlmodinstall.pod
12.41 KB
Del
OK
perlmodlib.pod
78.49 KB
Del
OK
perlmodstyle.pod
20.76 KB
Del
OK
perlmpeix.pod
14.24 KB
Del
OK
perlmroapi.pod
3.13 KB
Del
OK
perlnetware.pod
6.35 KB
Del
OK
perlnewmod.pod
10.95 KB
Del
OK
perlnumber.pod
8.16 KB
Del
OK
perlobj.pod
33.65 KB
Del
OK
perlootut.pod
25.6 KB
Del
OK
perlop.pod
121.73 KB
Del
OK
perlopenbsd.pod
1.18 KB
Del
OK
perlopentut.pod
37.53 KB
Del
OK
perlos2.pod
90.53 KB
Del
OK
perlos390.pod
15.2 KB
Del
OK
perlos400.pod
4.51 KB
Del
OK
perlpacktut.pod
49.83 KB
Del
OK
perlperf.pod
50.05 KB
Del
OK
perlplan9.pod
5 KB
Del
OK
perlpod.pod
21.27 KB
Del
OK
perlpodspec.pod
66.2 KB
Del
OK
perlpolicy.pod
19.73 KB
Del
OK
perlport.pod
82.63 KB
Del
OK
perlpragma.pod
5.11 KB
Del
OK
perlqnx.pod
4.14 KB
Del
OK
perlre.pod
100.76 KB
Del
OK
perlreapi.pod
25.17 KB
Del
OK
perlrebackslash.pod
25.64 KB
Del
OK
perlrecharclass.pod
34.19 KB
Del
OK
perlref.pod
28.32 KB
Del
OK
perlreftut.pod
18.23 KB
Del
OK
perlreguts.pod
36 KB
Del
OK
perlrequick.pod
17.5 KB
Del
OK
perlreref.pod
14.19 KB
Del
OK
perlretut.pod
115.13 KB
Del
OK
perlriscos.pod
1.49 KB
Del
OK
perlrun.pod
49.58 KB
Del
OK
perlsec.pod
22.77 KB
Del
OK
perlsolaris.pod
28.63 KB
Del
OK
perlsource.pod
6.19 KB
Del
OK
perlstyle.pod
8.42 KB
Del
OK
perlsub.pod
55.15 KB
Del
OK
perlsymbian.pod
15.44 KB
Del
OK
perlsyn.pod
41.04 KB
Del
OK
perlthrtut.pod
45.41 KB
Del
OK
perltie.pod
37.02 KB
Del
OK
perltoc.pod
639 KB
Del
OK
perltodo.pod
362 B
Del
OK
perltooc.pod
183 B
Del
OK
perltoot.pod
183 B
Del
OK
perltrap.pod
40.28 KB
Del
OK
perltru64.pod
7.55 KB
Del
OK
perltw.pod
5.15 KB
Del
OK
perlunicode.pod
70.89 KB
Del
OK
perlunifaq.pod
13.31 KB
Del
OK
perluniintro.pod
35.44 KB
Del
OK
perluniprops.pod
229.74 KB
Del
OK
perlunitut.pod
7.76 KB
Del
OK
perlutil.pod
9.68 KB
Del
OK
perluts.pod
3.11 KB
Del
OK
perlvar.pod
69.19 KB
Del
OK
perlvmesa.pod
3.88 KB
Del
OK
perlvms.pod
51.33 KB
Del
OK
perlvos.pod
5.82 KB
Del
OK
perlwin32.pod
34.58 KB
Del
OK
perlxs.pod
71.66 KB
Del
OK
perlxstut.pod
48.52 KB
Del
OK
perlxstypemap.pod
22.97 KB
Del
OK
Edit: perlrequick.pod
=head1 NAME perlrequick - Perl regular expressions quick start =head1 DESCRIPTION This page covers the very basics of understanding, creating and using regular expressions ('regexes') in Perl. =head1 The Guide =head2 Simple word matching The simplest regex is simply a word, or more generally, a string of characters. A regex consisting of a word matches any string that contains that word: "Hello World" =~ /World/; # matches In this statement, C<World> is a regex and the C<//> enclosing C</World/> tells Perl to search a string for a match. The operator C<=~> associates the string with the regex match and produces a true value if the regex matched, or false if the regex did not match. In our case, C<World> matches the second word in C<"Hello World">, so the expression is true. This idea has several variations. Expressions like this are useful in conditionals: print "It matches\n" if "Hello World" =~ /World/; The sense of the match can be reversed by using C<!~> operator: print "It doesn't match\n" if "Hello World" !~ /World/; The literal string in the regex can be replaced by a variable: $greeting = "World"; print "It matches\n" if "Hello World" =~ /$greeting/; If you're matching against C<$_>, the C<$_ =~> part can be omitted: $_ = "Hello World"; print "It matches\n" if /World/; Finally, the C<//> default delimiters for a match can be changed to arbitrary delimiters by putting an C<'m'> out front: "Hello World" =~ m!World!; # matches, delimited by '!' "Hello World" =~ m{World}; # matches, note the matching '{}' "/usr/bin/perl" =~ m"/perl"; # matches after '/usr/bin', # '/' becomes an ordinary char Regexes must match a part of the string I<exactly> in order for the statement to be true: "Hello World" =~ /world/; # doesn't match, case sensitive "Hello World" =~ /o W/; # matches, ' ' is an ordinary char "Hello World" =~ /World /; # doesn't match, no ' ' at end Perl will always match at the earliest possible point in the string: "Hello World" =~ /o/; # matches 'o' in 'Hello' "That hat is red" =~ /hat/; # matches 'hat' in 'That' Not all characters can be used 'as is' in a match. Some characters, called B<metacharacters>, are reserved for use in regex notation. The metacharacters are {}[]()^$.|*+?\ A metacharacter can be matched by putting a backslash before it: "2+2=4" =~ /2+2/; # doesn't match, + is a metacharacter "2+2=4" =~ /2\+2/; # matches, \+ is treated like an ordinary + 'C:\WIN32' =~ /C:\\WIN/; # matches "/usr/bin/perl" =~ /\/usr\/bin\/perl/; # matches In the last regex, the forward slash C<'/'> is also backslashed, because it is used to delimit the regex. Non-printable ASCII characters are represented by B<escape sequences>. Common examples are C<\t> for a tab, C<\n> for a newline, and C<\r> for a carriage return. Arbitrary bytes are represented by octal escape sequences, e.g., C<\033>, or hexadecimal escape sequences, e.g., C<\x1B>: "1000\t2000" =~ m(0\t2) # matches "cat" =~ /\143\x61\x74/ # matches in ASCII, but a weird way to spell cat Regexes are treated mostly as double-quoted strings, so variable substitution works: $foo = 'house'; 'cathouse' =~ /cat$foo/; # matches 'housecat' =~ /${foo}cat/; # matches With all of the regexes above, if the regex matched anywhere in the string, it was considered a match. To specify I<where> it should match, we would use the B<anchor> metacharacters C<^> and C<$>. The anchor C<^> means match at the beginning of the string and the anchor C<$> means match at the end of the string, or before a newline at the end of the string. Some examples: "housekeeper" =~ /keeper/; # matches "housekeeper" =~ /^keeper/; # doesn't match "housekeeper" =~ /keeper$/; # matches "housekeeper\n" =~ /keeper$/; # matches "housekeeper" =~ /^housekeeper$/; # matches =head2 Using character classes A B<character class> allows a set of possible characters, rather than just a single character, to match at a particular point in a regex. Character classes are denoted by brackets C<[...]>, with the set of characters to be possibly matched inside. Here are some examples: /cat/; # matches 'cat' /[bcr]at/; # matches 'bat', 'cat', or 'rat' "abc" =~ /[cab]/; # matches 'a' In the last statement, even though C<'c'> is the first character in the class, the earliest point at which the regex can match is C<'a'>. /[yY][eE][sS]/; # match 'yes' in a case-insensitive way # 'yes', 'Yes', 'YES', etc. /yes/i; # also match 'yes' in a case-insensitive way The last example shows a match with an C<'i'> B<modifier>, which makes the match case-insensitive. Character classes also have ordinary and special characters, but the sets of ordinary and special characters inside a character class are different than those outside a character class. The special characters for a character class are C<-]\^$> and are matched using an escape: /[\]c]def/; # matches ']def' or 'cdef' $x = 'bcr'; /[$x]at/; # matches 'bat, 'cat', or 'rat' /[\$x]at/; # matches '$at' or 'xat' /[\\$x]at/; # matches '\at', 'bat, 'cat', or 'rat' The special character C<'-'> acts as a range operator within character classes, so that the unwieldy C<[0123456789]> and C<[abc...xyz]> become the svelte C<[0-9]> and C<[a-z]>: /item[0-9]/; # matches 'item0' or ... or 'item9' /[0-9a-fA-F]/; # matches a hexadecimal digit If C<'-'> is the first or last character in a character class, it is treated as an ordinary character. The special character C<^> in the first position of a character class denotes a B<negated character class>, which matches any character but those in the brackets. Both C<[...]> and C<[^...]> must match a character, or the match fails. Then /[^a]at/; # doesn't match 'aat' or 'at', but matches # all other 'bat', 'cat, '0at', '%at', etc. /[^0-9]/; # matches a non-numeric character /[a^]at/; # matches 'aat' or '^at'; here '^' is ordinary Perl has several abbreviations for common character classes. (These definitions are those that Perl uses in ASCII-safe mode with the C</a> modifier. Otherwise they could match many more non-ASCII Unicode characters as well. See L<perlrecharclass/Backslash sequences> for details.) =over 4 =item * \d is a digit and represents [0-9] =item * \s is a whitespace character and represents [\ \t\r\n\f] =item * \w is a word character (alphanumeric or _) and represents [0-9a-zA-Z_] =item * \D is a negated \d; it represents any character but a digit [^0-9] =item * \S is a negated \s; it represents any non-whitespace character [^\s] =item * \W is a negated \w; it represents any non-word character [^\w] =item * The period '.' matches any character but "\n" =back The C<\d\s\w\D\S\W> abbreviations can be used both inside and outside of character classes. Here are some in use: /\d\d:\d\d:\d\d/; # matches a hh:mm:ss time format /[\d\s]/; # matches any digit or whitespace character /\w\W\w/; # matches a word char, followed by a # non-word char, followed by a word char /..rt/; # matches any two chars, followed by 'rt' /end\./; # matches 'end.' /end[.]/; # same thing, matches 'end.' The S<B<word anchor> > C<\b> matches a boundary between a word character and a non-word character C<\w\W> or C<\W\w>: $x = "Housecat catenates house and cat"; $x =~ /\bcat/; # matches cat in 'catenates' $x =~ /cat\b/; # matches cat in 'housecat' $x =~ /\bcat\b/; # matches 'cat' at end of string In the last example, the end of the string is considered a word boundary. =head2 Matching this or that We can match different character strings with the B<alternation> metacharacter C<'|'>. To match C<dog> or C<cat>, we form the regex C<dog|cat>. As before, Perl will try to match the regex at the earliest possible point in the string. At each character position, Perl will first try to match the first alternative, C<dog>. If C<dog> doesn't match, Perl will then try the next alternative, C<cat>. If C<cat> doesn't match either, then the match fails and Perl moves to the next position in the string. Some examples: "cats and dogs" =~ /cat|dog|bird/; # matches "cat" "cats and dogs" =~ /dog|cat|bird/; # matches "cat" Even though C<dog> is the first alternative in the second regex, C<cat> is able to match earlier in the string. "cats" =~ /c|ca|cat|cats/; # matches "c" "cats" =~ /cats|cat|ca|c/; # matches "cats" At a given character position, the first alternative that allows the regex match to succeed will be the one that matches. Here, all the alternatives match at the first string position, so the first matches. =head2 Grouping things and hierarchical matching The B<grouping> metacharacters C<()> allow a part of a regex to be treated as a single unit. Parts of a regex are grouped by enclosing them in parentheses. The regex C<house(cat|keeper)> means match C<house> followed by either C<cat> or C<keeper>. Some more examples are /(a|b)b/; # matches 'ab' or 'bb' /(^a|b)c/; # matches 'ac' at start of string or 'bc' anywhere /house(cat|)/; # matches either 'housecat' or 'house' /house(cat(s|)|)/; # matches either 'housecats' or 'housecat' or # 'house'. Note groups can be nested. "20" =~ /(19|20|)\d\d/; # matches the null alternative '()\d\d', # because '20\d\d' can't match =head2 Extracting matches The grouping metacharacters C<()> also allow the extraction of the parts of a string that matched. For each grouping, the part that matched inside goes into the special variables C<$1>, C<$2>, etc. They can be used just as ordinary variables: # extract hours, minutes, seconds $time =~ /(\d\d):(\d\d):(\d\d)/; # match hh:mm:ss format $hours = $1; $minutes = $2; $seconds = $3; In list context, a match C</regex/> with groupings will return the list of matched values C<($1,$2,...)>. So we could rewrite it as ($hours, $minutes, $second) = ($time =~ /(\d\d):(\d\d):(\d\d)/); If the groupings in a regex are nested, C<$1> gets the group with the leftmost opening parenthesis, C<$2> the next opening parenthesis, etc. For example, here is a complex regex and the matching variables indicated below it: /(ab(cd|ef)((gi)|j))/; 1 2 34 Associated with the matching variables C<$1>, C<$2>, ... are the B<backreferences> C<\g1>, C<\g2>, ... Backreferences are matching variables that can be used I<inside> a regex: /(\w\w\w)\s\g1/; # find sequences like 'the the' in string C<$1>, C<$2>, ... should only be used outside of a regex, and C<\g1>, C<\g2>, ... only inside a regex. =head2 Matching repetitions The B<quantifier> metacharacters C<?>, C<*>, C<+>, and C<{}> allow us to determine the number of repeats of a portion of a regex we consider to be a match. Quantifiers are put immediately after the character, character class, or grouping that we want to specify. They have the following meanings: =over 4 =item * C<a?> = match 'a' 1 or 0 times =item * C<a*> = match 'a' 0 or more times, i.e., any number of times =item * C<a+> = match 'a' 1 or more times, i.e., at least once =item * C<a{n,m}> = match at least C<n> times, but not more than C<m> times. =item * C<a{n,}> = match at least C<n> or more times =item * C<a{n}> = match exactly C<n> times =back Here are some examples: /[a-z]+\s+\d*/; # match a lowercase word, at least some space, and # any number of digits /(\w+)\s+\g1/; # match doubled words of arbitrary length $year =~ /^\d{2,4}$/; # make sure year is at least 2 but not more # than 4 digits $year =~ /^\d{4}$|^\d{2}$/; # better match; throw out 3 digit dates These quantifiers will try to match as much of the string as possible, while still allowing the regex to match. So we have $x = 'the cat in the hat'; $x =~ /^(.*)(at)(.*)$/; # matches, # $1 = 'the cat in the h' # $2 = 'at' # $3 = '' (0 matches) The first quantifier C<.*> grabs as much of the string as possible while still having the regex match. The second quantifier C<.*> has no string left to it, so it matches 0 times. =head2 More matching There are a few more things you might want to know about matching operators. The global modifier C<//g> allows the matching operator to match within a string as many times as possible. In scalar context, successive matches against a string will have C<//g> jump from match to match, keeping track of position in the string as it goes along. You can get or set the position with the C<pos()> function. For example, $x = "cat dog house"; # 3 words while ($x =~ /(\w+)/g) { print "Word is $1, ends at position ", pos $x, "\n"; } prints Word is cat, ends at position 3 Word is dog, ends at position 7 Word is house, ends at position 13 A failed match or changing the target string resets the position. If you don't want the position reset after failure to match, add the C<//c>, as in C</regex/gc>. In list context, C<//g> returns a list of matched groupings, or if there are no groupings, a list of matches to the whole regex. So @words = ($x =~ /(\w+)/g); # matches, # $word[0] = 'cat' # $word[1] = 'dog' # $word[2] = 'house' =head2 Search and replace Search and replace is performed using C<s/regex/replacement/modifiers>. The C<replacement> is a Perl double-quoted string that replaces in the string whatever is matched with the C<regex>. The operator C<=~> is also used here to associate a string with C<s///>. If matching against C<$_>, the S<C<$_ =~>> can be dropped. If there is a match, C<s///> returns the number of substitutions made; otherwise it returns false. Here are a few examples: $x = "Time to feed the cat!"; $x =~ s/cat/hacker/; # $x contains "Time to feed the hacker!" $y = "'quoted words'"; $y =~ s/^'(.*)'$/$1/; # strip single quotes, # $y contains "quoted words" With the C<s///> operator, the matched variables C<$1>, C<$2>, etc. are immediately available for use in the replacement expression. With the global modifier, C<s///g> will search and replace all occurrences of the regex in the string: $x = "I batted 4 for 4"; $x =~ s/4/four/; # $x contains "I batted four for 4" $x = "I batted 4 for 4"; $x =~ s/4/four/g; # $x contains "I batted four for four" The non-destructive modifier C<s///r> causes the result of the substitution to be returned instead of modifying C<$_> (or whatever variable the substitute was bound to with C<=~>): $x = "I like dogs."; $y = $x =~ s/dogs/cats/r; print "$x $y\n"; # prints "I like dogs. I like cats." $x = "Cats are great."; print $x =~ s/Cats/Dogs/r =~ s/Dogs/Frogs/r =~ s/Frogs/Hedgehogs/r, "\n"; # prints "Hedgehogs are great." @foo = map { s/[a-z]/X/r } qw(a b c 1 2 3); # @foo is now qw(X X X 1 2 3) The evaluation modifier C<s///e> wraps an C<eval{...}> around the replacement string and the evaluated result is substituted for the matched substring. Some examples: # reverse all the words in a string $x = "the cat in the hat"; $x =~ s/(\w+)/reverse $1/ge; # $x contains "eht tac ni eht tah" # convert percentage to decimal $x = "A 39% hit rate"; $x =~ s!(\d+)%!$1/100!e; # $x contains "A 0.39 hit rate" The last example shows that C<s///> can use other delimiters, such as C<s!!!> and C<s{}{}>, and even C<s{}//>. If single quotes are used C<s'''>, then the regex and replacement are treated as single-quoted strings. =head2 The split operator C<split /regex/, string> splits C<string> into a list of substrings and returns that list. The regex determines the character sequence that C<string> is split with respect to. For example, to split a string into words, use $x = "Calvin and Hobbes"; @word = split /\s+/, $x; # $word[0] = 'Calvin' # $word[1] = 'and' # $word[2] = 'Hobbes' To extract a comma-delimited list of numbers, use $x = "1.618,2.718, 3.142"; @const = split /,\s*/, $x; # $const[0] = '1.618' # $const[1] = '2.718' # $const[2] = '3.142' If the empty regex C<//> is used, the string is split into individual characters. If the regex has groupings, then the list produced contains the matched substrings from the groupings as well: $x = "/usr/bin"; @parts = split m!(/)!, $x; # $parts[0] = '' # $parts[1] = '/' # $parts[2] = 'usr' # $parts[3] = '/' # $parts[4] = 'bin' Since the first character of $x matched the regex, C<split> prepended an empty initial element to the list. =head1 BUGS None. =head1 SEE ALSO This is just a quick start guide. For a more in-depth tutorial on regexes, see L<perlretut> and for the reference page, see L<perlre>. =head1 AUTHOR AND COPYRIGHT Copyright (c) 2000 Mark Kvale All rights reserved. This document may be distributed under the same terms as Perl itself. =head2 Acknowledgments The author would like to thank Mark-Jason Dominus, Tom Christiansen, Ilya Zakharevich, Brad Hughes, and Mike Giroux for all their helpful comments. =cut
Save