Front page | perl.perl5.porters |
Postings from May 2003
[perl #22194] perldoc -q permute example using faster Algorithm::Permute panic's
Thread Next
From:
David Dyck
Date:
May 13, 2003 18:02
Subject:
[perl #22194] perldoc -q permute example using faster Algorithm::Permute panic's
Message ID:
rt-22194-57559.14.2839191712388@bugs6.perl.org
# New Ticket Created by David Dyck
# Please include the string: [perl #22194]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22194 >
This is a bug report for perl from david.dyck@fluke.com,
generated with the help of perlbug 1.34 running under perl v5.9.0.
-----------------------------------------------------------------
[Please enter your report here]
perldoc -q permute
recomends Algorithm::Permute and has an example
For even faster execution, you could do:
use Algorithm::Permute;
my @array = 'a'..'d';
Algorithm::Permute::permute {
print "next permutation: (@array)\n";
} @array;
I tried this using perl 5.9.0, and make test failed until
I added
DEFINE => "-DPERL_EXT",
to its Makefile.PL WriteMakefile section
to allow make test to start, but that terminates early with
make: *** [test_dynamic] Error 2
Since Algorithm::Permute does build and test ok in perl 5.8,
and it is in the perl FAQ, I thought that
this bug should be logged here, since
untill it is resolved if the problem is with
the .xs file in Algorithm::Permute
or something that has changed in perl 5.9.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=docs
severity=medium
---
Site configuration information for perl v5.9.0:
Configured by dcd at Thu May 8 21:02:58 PDT 2003.
Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 19454) configuration:
Platform:
osname=linux, osvers=2.4.21-rc1, archname=i686-linux
uname='linux dd 2.4.21-rc1 #1 mon apr 21 12:23:11 pdt 2003 i686 '
config_args='-Dmksymlinks -Dinstallusrbinperl -Uversiononly -Dusedevel -Doptimize=-O3 -g -de -Dcf_email=david.dyck@fluke.com'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O3 -g',
cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='egcs-2.91.66.1 19990314/Linux (egcs-1.1.2 release)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lgdbm -ldbm -ldb -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/lib/libc.so.5.4.44, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
DEVEL18374
---
@INC for perl v5.9.0:
/usr/local/lib/perl5/5.9.0/i686-linux
/usr/local/lib/perl5/5.9.0
/usr/local/lib/perl5/site_perl/5.9.0/i686-linux
/usr/local/lib/perl5/site_perl/5.9.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.9.0:
HOME=/home/dcd
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/dcd/bin:/sbin:/usr/local/bin:/bin:/usr/bin:/usr/X11/bin:/usr/games:/usr/local/samba:/home/hobbes/tools/scripts:/home/hobbes/tools/linux:/usr0/hobbes/tools/scripts:/usr0/dcd/bin:/apps/general/bin:/usr/public
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #22194] perldoc -q permute example using faster Algorithm::Permute panic's
by David Dyck