develooper Front page | perl.perl5.porters | Postings from April 2000

Fwd: Regexps not stringifying bound variables?

Thread Next
Rocco Caputo
April 14, 2000 17:43
Fwd: Regexps not stringifying bound variables?
Message ID:
This is a bug report for perl from,
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";


URI::URL version 5.02

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:
    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 '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
    cc='cc', optimize='-O2 -g', gccversion=
    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:

Environment for perl 5.00561:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

===================END FORWARDED MESSAGE===================

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