\h not equiv to [\h]

--14dae9399ce7b16a6104c544c4c1
Content-Type: text/plain; charset=ISO-8859-1

Hi,

Is this a known bug?

    $ perl -le'print "\xA0" =~ /\p{Space}/ ?1:0'
    1

    $ perl -le'print "\xA0" =~ /\s/ ?1:0'
    0

    $ perl -le'print "\xA0" =~ /\s/u ?1:0'
    1
                                             __
    $ perl -le'print "\xA0" =~ /\h/ ?1:0'      \
    1                                           \
                                                 > huh??
    $ perl -le'print "\xA0" =~ /[\h]/ ?1:0'     /
    0                                        __/

    $ perl -le'print "\xA0" =~ /[\h]/u ?1:0'
    1

This is perl 5, version 16, subversion 0 (v5.16.0) built for
x86_64-linux-thread-multi

--14dae9399ce7b16a6104c544c4c1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi, <br><br>Is this a known bug?<br><br><span style=3D"font-family:courier =
new,monospace">=A0=A0=A0 $ perl -le&#39;print &quot;\xA0&quot; =3D~ /\p{Spa=
ce}/ ?1:0&#39;</span><br style=3D"font-family:courier new,monospace"><span =
style=3D"font-family:courier new,monospace">=A0=A0=A0 1</span><br style=3D"=
font-family:courier new,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0 </span><br styl=
e=3D"font-family:courier new,monospace"><span style=3D"font-family:courier =
new,monospace">=A0=A0=A0 $ perl -le&#39;print &quot;\xA0&quot; =3D~ /\s/ ?1=
:0&#39;</span><br style=3D"font-family:courier new,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0 0</span><br sty=
le=3D"font-family:courier new,monospace"><span style=3D"font-family:courier=
 new,monospace">=A0=A0=A0 </span><br style=3D"font-family:courier new,monos=
pace"><span style=3D"font-family:courier new,monospace">=A0=A0=A0 $ perl -l=
e&#39;print &quot;\xA0&quot; =3D~ /\s/u ?1:0&#39;</span><br style=3D"font-f=
amily:courier new,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0 1</span><br sty=
le=3D"font-family:courier new,monospace"><span style=3D"font-family:courier=
 new,monospace">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
 __</span><br style=3D"font-family:courier new,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0 $ perl -le&#39;=
print &quot;\xA0&quot; =3D~ /\h/ ?1:0&#39;=A0=A0=A0=A0=A0 \</span><br style=
=3D"font-family:courier new,monospace"><span style=3D"font-family:courier n=
ew,monospace">=A0=A0=A0 1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0 \</span><br style=3D"font-family:courier new,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &gt; huh??</span><br style=3D=
"font-family:courier new,monospace"><span style=3D"font-family:courier new,=
monospace">=A0=A0=A0 $ perl -le&#39;print &quot;\xA0&quot; =3D~ /[\h]/ ?1:0=
&#39;=A0=A0=A0=A0 /</span><br style=3D"font-family:courier new,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0 0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 __/</span><br style=3D"font-family:courier n=
ew,monospace"><br style=3D"font-family:courier new,monospace"><span style=
=3D"font-family:courier new,monospace">=A0=A0=A0 $ perl -le&#39;print &quot=
;\xA0&quot; =3D~ /[\h]/u ?1:0&#39;</span><br style=3D"font-family:courier n=
ew,monospace">
<span style=3D"font-family:courier new,monospace">=A0=A0=A0 1</span><br sty=
le=3D"font-family:courier new,monospace"><br>This is perl 5, version 16, su=
bversion 0 (v5.16.0) built for x86_64-linux-thread-multi<br><br>

--14dae9399ce7b16a6104c544c4c1--
0
ikegami
7/20/2012 3:44:15 PM
perl.perl5.porters 46691 articles. 0 followers. Follow

1 Replies
292 Views

Similar Articles

[PageSpeed] 6

On 07/20/2012 09:44 AM, Eric Brine wrote:
> Hi,
>
> Is this a known bug?

Not to me it wasn't.  Ouch


>
>      $ perl -le'print "\xA0" =~ /\p{Space}/ ?1:0'
>      1
>
>      $ perl -le'print "\xA0" =~ /\s/ ?1:0'
>      0
>
>      $ perl -le'print "\xA0" =~ /\s/u ?1:0'
>      1
>                                               __
>      $ perl -le'print "\xA0" =~ /\h/ ?1:0'      \
>      1                                           \
>                                                   > huh??
>      $ perl -le'print "\xA0" =~ /[\h]/ ?1:0'     /
>      0                                        __/
>
>      $ perl -le'print "\xA0" =~ /[\h]/u ?1:0'
>      1
>
> This is perl 5, version 16, subversion 0 (v5.16.0) built for
> x86_64-linux-thread-multi
>

0
public
7/20/2012 5:07:03 PM
Reply:

Similar Artilces:

Linux sqlcli.h, sqlcli1.h and sqlext.h
--=_alternative 004E7DFF85256E32_= Content-Type: text/plain; charset="US-ASCII" Hi, I am trying to install the DB2 DBD driver to write Perl scripts for querying a DB2 database. I was able to build the DBI and the test.pl was successful. But when I tried to compile the driver I got this message: Constants.xs:16:20: sqlcli.h: No such file or directory Constants.xs:16:20: sqlcli1.h: No such file or directory Constants.xs:16:20: sqlext.h: No such file or directory make[1]: *** [Constants.o] Error 1 Can you please let me know where I can download these .h files from? ...

Antwort: Linux sqlcli.h, sqlcli1.h and sqlext.h
Hi, you find this files in the db2-application-development-client, which ne= ed to install first. Then you may compile software using the db2-cli-interface! Mit freundlichen Gruessen / Best regards Manfred Beilfuss Deutsche Verm=F6gensberatung AG IT_Systemmanagement , DBA M=FCnchenerstr. 1 60329 Frankfurt Tel.: +49 (69) 2384 - 639 Fax: +49 (69) 2384 - 329 Mailto:Manfred.Beilfuss@dvag.com = =20 Carlos ...

Antwort: Re: Antwort: Linux sqlcli.h, sqlcli1.h and sqlext.h
Hi Carlos, there are different type's of client-software. You have a basic runtime-client, which has no gui and is basic for the other clients. Th= e second is the administration-client, which give's some administrative gui-stuff additional to the runtime-client. And last but not least ther= e is the application-development-client, which add's to each other eventuall= y installed type of client-software among other things a pre-compiler for= the db2-cli-c-api, to which the *.h-file's belong that you just miss. If yo= u find these files on your machine, the insta...

superreview granted: [Bug 407297] nsIHTMLToTextSink should use nsStringGlue .h instead of nsString.h : [Attachment 292018] Changes nsString. h to nsStringGlue.h in nsIHTMLToTextSink
Boris Zbarsky (reviews very slow until spring) <bzbarsky@mit.edu> has granted superreview: Bug 407297: nsIHTMLToTextSink should use nsStringGlue.h instead of nsString.h https://bugzilla.mozilla.org/show_bug.cgi?id=407297 Attachment 292018: Changes nsString.h to nsStringGlue.h in nsIHTMLToTextSink https://bugzilla.mozilla.org/attachment.cgi?id=292018&action=edit ------- Additional Comments from Boris Zbarsky (reviews very slow until spring) <bzbarsky@mit.edu> This should hopefully be a safe change that allows mailnews to move forward. ...

odbc.h and unixodbc.h
Hello, how can I use odbc.h or unixodbc.h for compiling PHP with build-in support for ASA7? Is there any documentation available? The previous postings don't help me, they just concern PHP3 or unixODBC. -- Marten Lehmann Here is how: 1. export CFLAGS="-DODBC_UNIX" 2. export CUSTOM_ODBC_LIBS="-ldbodbc7" 3. source /opt/sybase/SYBSsa7/bin/asa_config.sh 4. ../configure --with-apxs=/usr/sbin/apxs --with-custom-odbc=/opt/sybase/SYBSsa 7 5. make 6. make install This will build PHP directly linked to ASA's ODBC drivers. M. Abouzour "Marte...

[ID 19990903.003] compilation error in thrdvar.h, perlvars.h, intrpvar.h
All three .h files giving similar errors : "./intrpvar.h", line 87: invalid token: ## "./intrpvar.h", line 87: undefined or not a type: PL_ "./intrpvar.h", line 87: syntax error before or at: IDBline "./intrpvar.h", line 87: warning: old-style declaration or incorrect type for: IDBline "miniperlmain.c", line 35: undefined symbol: PL_do_undump Perl Version: 5.005.02 OS: Sun-Solaris-2.5.1 Steps performed: . sh Configure -Dprefix=/opt/perl make make test make install All three ...

h
Name: frgf Email: ghlAhy,fg,,g Product: Firefox Summary: h Comments: love it Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.10) Gecko/20071115 Firefox/2.0.0.10 ...

h
Name: loureno Email: lourenobatistaathotmaildotcom Product: Shiretoko Summary: h Comments: 566 Browser Details: Mozilla/5.0 (Windows; U; Windows NT 6.0; pt-BR; rv:1.9.1b1) Gecko/20081007 Firefox/3.1b1 From URL: http://hendrix.mozilla.org/ Note to readers: Hendrix gives no expectation of a response to this feedback but if you wish to provide one you must BCC (not CC) the sender for them to see it. ...

h
Name: h Email: kj Product: Bon Echo Summary: h Comments: gbk. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1 ...

Steve - H A I L T O T H E H A C K E R S ! !
Hackers - scum of the earth! Parasites on all aspects of life: government, business, my family's computers, my friends' computers, my computer, and your computers. All hackers should be locked up for life by the FBI (even if the damage is less than $5,000)! Ok, if this were the case, we would live in a blissful digital age. Right? Everything running smoothly. Until say Libya, Syria, North Korea, or whoever decides that they do not like what "Perfect" America is doing and declares war on us. Then what? Sense our hated hackers all are in jail and all of our sof...

superreview granted: [Bug 105708] move nsUnitConversion.h : [ Attachment 294929] Move the contents of nsUnitConversion.h to nsCoord.h
Robert O'Callahan (:roc) <roc@ocallahan.org> has granted Jeremy Lea <reg@openpave.org>'s request for superreview: Bug 105708: move nsUnitConversion.h https://bugzilla.mozilla.org/show_bug.cgi?id=105708 Attachment 294929: Move the contents of nsUnitConversion.h to nsCoord.h https://bugzilla.mozilla.org/attachment.cgi?id=294929&action=edit ------- Additional Comments from Robert O'Callahan (:roc) <roc@ocallahan.org> Looks good to me. Thanks for this! ...

superreview requested: [Bug 105708] move nsUnitConversion.h : [ Attachment 294929] Move the contents of nsUnitConversion.h to nsCoord.h
Jeremy Lea <reg@openpave.org> has asked Robert O'Callahan (:roc) <roc@ocallahan.org> for superreview: Bug 105708: move nsUnitConversion.h https://bugzilla.mozilla.org/show_bug.cgi?id=3D105708 Attachment 294929: Move the contents of nsUnitConversion.h to nsCoord.h https://bugzilla.mozilla.org/attachment.cgi?id=3D294929&action=3Dedit ------- Additional Comments from Jeremy Lea <reg@openpave.org> This moves the contents of nsUnitConversion.h into nsCoord.h. The reasons = for this are that nsUnitConversion.h creates a XPCOM dependency on GFX, which should n...

Problems with ppport.h and dbipport.h
I've released a DBD::ODBC requiring Perl 5.8 but included the use of my_snprintf (from ppport.h) which unfortunately was not defined until 5.9.4. Fair enough, my fault but I have no way of fixing it (other than reversing my_snprintf back to sprintf) because of the way DBI includes dbipport.h (alias ppport.h). In DBI, dbipport.h is a renamed ppport.h generated by Devel::PPPort and is included from DBIXS.h which all DBDs include - presumably the idea was to save DBDs from having to keep up to date with ppport.h. In DBI 1.609, dbipport.h was updated (by H Merijn Brand I think...

bitcount.h & uudmap.h
--Signature=_Sat__9_Feb_2013_17_43_05_+0000_8lga9iCBM4dHju_Z Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In the preparation of new cache files for cross-building support of perl in Debian, I've got a question about these two generated headers and the generate_uudmap.c source code. I can't generate any differences in these files when testing on a variety of architectures available with Debian, so I'm wondering if this is a platform issue only. Is the need for these files limited to Win32 or Darwin o...

Web resources about - \h not equiv to [\h] - perl.perl5.porters

Nikon DX format - Wikipedia, the free encyclopedia
The Nikon DX format is an alternative name used by Nikon corporation for APS-C image sensor format being approximately 24×16 mm. Its dimensions ...

Michael Geist - EP Committees Reject ACTA As Backlash Against Secretive IP Agreements Continues to Grow ...
Dr. Michael Geist is the Canada Research Chair of Internet and E-commerce Law at the University of Ottawa., trade agreement opposition

Pentax unveils X90 Megazoom digital camera
Pentax unveils X90 Megazoom digital camera. Features a 26x zoom lens. Pentax today annunced the 12MP X90, featuring a 26-676mm (35mm equivalent) ...

PHP Software Engineer - PHP Sr. Software Developer Job in Manhattan 10001, New York US PHP Software Engineer ...
PHP Software Engineer - PHP Sr. Software Developer job in Manhattan, New York, US. Read the PHP Software Engineer - PHP Sr. Software Developer ...

booleansplit.com » PMA 2009 show report
Day one of the annual PMA show is in the books and as promised here are my interesting product picks with comments. Hopefully I will have some ...

Perspectives on the Geothermal Energy Association Showcase in DC
... without the benefit of a substantial grid. Similar to many islands, that power is produced with diesel generators. At $0.37 per kWh (equiv) ...

HTML META Tag Generator And Calculator
This is a generator to build META tags for your pages and for your site. Provided for your use by CSGNetwork.Com and Computer Support Group. ...

Daily Herald - Suburban Chicago's Information Source
Daily Herald is suburban chicago's largest daily newspaper. the daily herald provides a local perspective with local content such as the northwest ...

Panasonic premieres ZS3 / TZ7 with AVCHD lite video
Digital Photography Review: All the latest digital camera reviews and digital imaging news. Lively discussion forums. Vast samples galleries ...

Google Chrome Plug-in Paves the Way for Google Wave
Preparing for the general launch of Google Wave to 100,000 users next week, Google's Chrome Web browser team today released Google Chrome Frame, ...

Resources last updated: 1/7/2016 6:41:55 AM