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
From:
Steffen "Daode" Nurpmeso
Date:
June 29, 2013 15:10
Subject:
Re: [perl #118667] doc and code mismatch on some space character(classe)s
Message ID:
20130629160912.dZ4oxjKGe/kye4GHyHdZ/UIa@dietcurd.local
"James E Keenan via RT" <perlbug-followup@perl.org> 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
 |> 
 |
 |Steffen,
 |
 |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

--steffen

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About