Front page | perl.perl5.porters |
Postings from April 2000
Fwd: Regexps not stringifying bound variables?
Thread Next
From:
Rocco Caputo
Date:
April 14, 2000 17:43
Subject:
Fwd: Regexps not stringifying bound variables?
Message ID:
200004150041.UAA22183@mail.netrus.net
This is a bug report for perl from troc@netrus.net,
generated with the help of perlbug 1.27 running under perl 5.00561.
-----------------------------------------------------------------
[Please enter your report here]
#!/usr/bin/perl -w
use URI::URL;
print "1..4\n";
my $url_text = '/yatta/yatta/yatta';
my $url = URI::URL->new($url_text);
sub test_match {
my ($number, $url) = @_;
print "not " unless $url =~ /^\Q$url_text\E$/;
print "ok $number\n";
}
print "not " unless ref($url) eq 'URI::URL';
print "ok 1\n";
&test_match(2, $url);
$url = $url . '';
&test_match(3, $url);
print "ok 4\n";
exit;
__END__
URI::URL version 5.02
1..4
ok 1
not ok 2
ok 3
ok 4
Confirmed on perl 5.6.0, also with URI::URL 5.02
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Site configuration information for perl 5.00561:
Configured by troc at Mon Sep 6 13:31:45 EDT 1999.
Summary of my perl5 (revision 5.0 version 5 subversion 61) configuration:
Platform:
osname=freebsd, osvers=3.1-stable, archname=i386-freebsd-thread
uname='freebsd unix.homenet 3.1-stable freebsd 3.1-stable #14: fri may 28 13:58:18 edt 1999 troc@unix.homenet:usrsrcsyscompilecustom i386 '
config_args='-Dusethreads'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define useperlio=undef d_sfio=undef
use64bits=undef usemultiplicity=undef
Compiler:
cc='cc', optimize='-O2 -g', gccversion=2.7.2.1
cppflags='-DDEBUGGING -I/usr/local/include'
ccflags ='-DDEBUGGING -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=true
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-pthread -Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lm -lc_r -lcrypt
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl 5.00561:
/usr/local/perl5.005_61/lib/i386-freebsd-thread
/usr/local/perl5.005_61/lib
/usr/local/perl5.005_61/lib/site_perl/i386-freebsd-thread
/usr/local/perl5.005_61/lib/site_perl
.
---
Environment for perl 5.00561:
HOME=/home/troc
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/home/troc/bin
PERL_BADLANG (unset)
SHELL=/usr/local/bin/bash
===================END FORWARDED MESSAGE===================
Thread Next
-
Fwd: Regexps not stringifying bound variables?
by Rocco Caputo