develooper Front page | perl.perl5.porters | Postings from June 2013

Re: [perl #118667] doc and code mismatch on some space character(classe)s

Thread Next
Steffen "Daode" Nurpmeso
June 29, 2013 15:10
Re: [perl #118667] doc and code mismatch on some space character(classe)s
Message ID:
"James E Keenan via RT" <> wrote:
 |On Fri Jun 28 07:36:04 2013, sdaoden wrote:
 |> Hello,
 |> there is something i don't understand.  Thank you.
 |>   $ perl -e 'print "$^V:";$i="\x{00A0}"'\
 |>       -e ';if($i=~/[[:space:]]/){print "1"}'\
 |>       -e ';if($i=~/\s/){print "2"}'\
 |>       -e ';if($i=~/\p{IsSpace}/){print "3"}'\
 |>       -e ';print "\n"'
 |>     :3 <- 5.8.9 (-))
 |>   v5.10.0:3
 |>   v5.16.1:3
 |>   v5.18.0:3
 |If I copy-and-paste your program into a terminal, I get syntax errors
 |when I attempt to run it:
 |$ perl -e 'print "$^V:";$i="\x{00A0}"'\
 |> -e ';if($i=~/[[:space:]]/){print "1"}'\
 |> -e ';if($i=~/\s/){print "2"}'\
 |> -e ';if($i=~/\p{IsSpace}/){print "3"}'\
 |> -e ';print "\n"'
 |syntax error at -e line 1, near ""\x{00A0}"-e"
 |Execution of -e aborted due to compilation errors.

I'm sorry again for this total crap that is called the perl RT
system, but i managed to get to this report by searching for the
very number that is shown in the subject (second attempt, without
the #).
Note that if you follow the link

  Download (untitled)  [text/plain 1k]

you'll get a(n) (space-) unmangled version of the bug report, and
if you do copy-and-paste the example from in there, it'll work
just fine.

But thanks for telling me, should i ever have to face perlbug@
again i'll remember that the RT is terrible...

 |Thank you very much.
 |Jim Keenan


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About