CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [JonathanPool] hex metacharacters for characters below x100: Edit Log



7stud
Enthusiast

Mar 30, 2010, 10:57 AM


Views: 5358
Re: [JonathanPool] hex metacharacters for characters below x100

Everything looks correct to me. perl says the string is a utf8 string, so it isn't chopping off any bytes. The round tripping of the string confirms that.

The string contains a character whose unicode code point is U+00C4--as reported by perl, yet you say your experiments show that a regex of \x{0100} matches that character. I don't see how that's possible, and I don't get a match when I try it.

I don't have any more ideas. Sorry.

The last thing you might want to do is post your OS, as well as the output from perl -v and perl -V, then see if someone with a similar setup gets the same regex match that you are seeing.

Here's my info:


Code
$ perl -v 

This is perl, v5.10.1 (*) built for darwin-2level-thread-multi

Copyright 1987-2009, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.



Code
$ perl -V 
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:
osname=darwin, osvers=8.11.1, archname=darwin-2level-thread-multi
uname='darwin xxxx darwin kernel version 8.11.1:
wed oct 10 18:23:28 pdt 2007; root:xnu-792.25.20~1release_i386
i386 i386 '
config_args='-Dusethreads'
hint=previous, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
-pipe -I/usr/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing
-pipe -I/usr/local/include -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5370)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib'


Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO
Built under darwin
Compiled at Dec 2 2009 12:56:11
@INC:
/usr/local/lib/perl5/5.10.1/darwin-2level
/usr/local/lib/perl5/5.10.1
/usr/local/lib/perl5/site_perl/5.10.1/darwin-2level
/usr/local/lib/perl5/site_perl/5.10.1
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
.



(This post was edited by 7stud on Mar 30, 2010, 11:12 AM)


Edit Log:
Post edited by 7stud (Enthusiast) on Mar 30, 2010, 10:58 AM
Post edited by 7stud (Enthusiast) on Mar 30, 2010, 10:59 AM
Post edited by 7stud (Enthusiast) on Mar 30, 2010, 11:00 AM
Post edited by 7stud (Enthusiast) on Mar 30, 2010, 11:04 AM
Post edited by 7stud (Enthusiast) on Mar 30, 2010, 11:10 AM
Post edited by 7stud (Enthusiast) on Mar 30, 2010, 11:12 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives