diff options
author | Karl Williamson <khw@khw-desktop.(none)> | 2010-03-27 23:06:59 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-03-28 15:57:17 +0200 |
commit | 9f5650a8ec47c75b463d95214aa5d6d9d837290e (patch) | |
tree | 0ef147788db32127d0b023003c79a53175476ec5 | |
parent | 418e7b041a50a0f6a3f1a824f7b10ba435fb78b1 (diff) | |
download | perl-9f5650a8ec47c75b463d95214aa5d6d9d837290e.tar.gz |
Clarify that some examples are for ASCII machines
-rw-r--r-- | pod/perlrebackslash.pod | 2 | ||||
-rw-r--r-- | pod/perlrequick.pod | 4 | ||||
-rw-r--r-- | pod/perlretut.pod | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod index 148f6ee887..4ce2796545 100644 --- a/pod/perlrebackslash.pod +++ b/pod/perlrebackslash.pod @@ -264,7 +264,7 @@ as a character without special meaning by the regex engine, and will match Mnemonic: heI<x>adecimal. -=head4 Examples +=head4 Examples (assuming an ASCII platform) $str = "Perl"; $str =~ /\x50/; # Match, "\x50" is "P". diff --git a/pod/perlrequick.pod b/pod/perlrequick.pod index 7abd895e8a..4b5e19a0fb 100644 --- a/pod/perlrequick.pod +++ b/pod/perlrequick.pod @@ -85,8 +85,8 @@ 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, but a weird way to spell cat + "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: diff --git a/pod/perlretut.pod b/pod/perlretut.pod index 2798f6890c..0ff743838c 100644 --- a/pod/perlretut.pod +++ b/pod/perlretut.pod @@ -184,7 +184,7 @@ bytes. Here are some examples of escapes: "1000\t2000" =~ m(0\t2) # matches "1000\n2000" =~ /0\n20/ # matches "1000\t2000" =~ /\000\t2/ # doesn't match, "0" ne "\000" - "cat" =~ /\143\x61\x74/ # matches, but a weird way to spell cat + "cat" =~ /\143\x61\x74/ # matches in ASCII, but a weird way to spell cat If you've been around Perl a while, all this talk of escape sequences may seem familiar. Similar escape sequences are used in double-quoted |