Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PPI CPAN distribution.

Report information
The Basics
Id: 8752
Status: resolved
Worked: 45 min
Priority: 0/
Queue: PPI

People
Owner: adamk [...] cpan.org
Requestors: SIMONFLK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Edge case that doesn't round-trip
The following code demonstrates: #!/usr/local/bin/perl use strict; use PPI; my $perl_code = <<PERL; ok( sub {die("goodbye")} ); PERL my $lexer = new PPI::Lexer; my $doc = $lexer->lex_source($perl_code); printf "Using PPI: %s\n", PPI->VERSION; print $doc->content; On my machine, I get this output: Using PPI: 0.831 ok(sub {die("goodbye")} ); # ^ ^ - notice the space has moved This isn't critical for us, but I thought you'd like (or want) to know. --simonflk Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration: Platform: osname=solaris, osvers=2.9, archname=sun4-solaris uname='sunos pandora 5.9 generic_112233-10 sun4u sparc sunw,ultra-250 ' config_args='-Dprefix=/usr/local/cps_perl5.6.1 -Dprivlib=/usr/local/cps_perl5.6.1/lib -Dsitelib=/usr/local/cps_perl5.6.1/site_perl -Uinstallusrbinperl -Ubincompat5005 -Dlocincpth=/usr/local/include /opt/csw/include /usr/sfw/include -Dloclibpth=/usr/local/lib /opt/csw/lib /usr/sfw/lib -Dcflags=-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mcpu=ultrasparc -mtune=ultrasparc -Dcc=gcc -des' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef Compiler: cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include -I/opt/csw/include -I/usr/sfw/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O', cppflags='-fno-strict-aliasing -I/usr/local/include -I/opt/csw/include -I/usr/sfw/include' ccversion='', gccversion='3.3.2', gccosandvers='solaris2.8' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 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, usemymalloc=y, prototype=define Linker and Libraries: ld='gcc', ldflags =' -L/usr/local/lib -L/opt/csw/lib -L/usr/sfw/lib ' libpth=/usr/local/lib /opt/csw/lib /usr/sfw/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -liconv perllibs=-lsocket -lnsl -ldl -lm -lc -liconv libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib -L/opt/csw/lib -L/usr/sfw/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under solaris Compiled at Jan 5 2004 14:13:23 %ENV: