From: brian d foy Date: Tue, 24 Nov 2009 00:55:24 +0000 (-0600) Subject: * Remove some end-of-line whitespace from perlebcdic X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0be0346991b9897be3779aad45b504f1f1d7c709;p=p5sagit%2Fp5-mst-13.2.git * Remove some end-of-line whitespace from perlebcdic --- diff --git a/pod/perlebcdic.pod b/pod/perlebcdic.pod index 5f6a83d..962244a 100644 --- a/pod/perlebcdic.pod +++ b/pod/perlebcdic.pod @@ -699,7 +699,7 @@ it in tr/// like so: my $ebcdic_string = $ascii_string; eval '$ebcdic_string =~ tr/' . $cp_037 . '/\000-\377/'; -To convert from EBCDIC 037 to ASCII just reverse the order of the tr/// +To convert from EBCDIC 037 to ASCII just reverse the order of the tr/// arguments like so: my $ascii_string = $ebcdic_string; @@ -1062,9 +1062,9 @@ then sort(). If the data are primarily lowercase non Latin 1 then apply tr/[A-Z]/[a-z]/ before sorting. If the data are primarily UPPERCASE and include Latin-1 characters then apply: - tr/[a-z]/[A-Z]/; + tr/[a-z]/[A-Z]/; tr/[àáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ]/[ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ/; - s/ß/SS/g; + s/ß/SS/g; then sort(). Do note however that such Latin-1 manipulation does not address the E C character that will remain at