develooper Front page | perl.perl5.porters | Postings from August 2009

[perl #68706] problem with pod inside function arguments

Thread Next
From:
Aaron Trevena
Date:
August 21, 2009 15:19
Subject:
[perl #68706] problem with pod inside function arguments
Message ID:
rt-3.6.HEAD-2466-1250861000-888.68706-75-0@perl.org
# New Ticket Created by  "Aaron Trevena" 
# Please include the string:  [perl #68706]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68706 >


This is a bug report for perl from teejay@hotblackdesiato.(none),
generated with the help of perlbug 1.36 running under perl 5.10.0.

-----------------------------------------------------------------

Adding pod inside of a function call resulted in the following error:

 String found where operator expected at
/home/teejay/development/freelance/lucemincendo/trunk/webserver/script/../lib/RSTDB/Schema/Result/Person.pm
line 30, near "cut
  "person_id""
        (Do you need to predeclare cut?)

It appears that perl parses the =cut at the end and the next line as
code, rather than just the next line - adding whitespace and newlines
didn't affect this.

example :

__PACKAGE__->add_columns(
=head2 column_name
blah blah
=cut
column_name => { .. }
);

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---

Site configuration information for perl 5.10.0:

Configured by teejay at Sun Jul 19 10:44:19 BST 2009.

Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
    osname=linux, osvers=2.6.23.15-137.fc8, archname=x86_64-linux
    uname='linux hotblackdesiato 2.6.23.15-137.fc8 #1 smp sun feb 10
17:03:13 est 2008 x86_64 x86_64 x86_64 gnulinux '
    config_args='-ds -e'
    hint=previous, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/include/gdbm -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm'
    ccversion='', gccversion='4.1.2 20070925 (Red Hat 4.1.2-33)',
gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.7'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib'

Locally applied patches:

RT#488088

@INC for perl 5.10.0:
    /usr/local/lib/perl5/5.10.0/x86_64-linux
    /usr/local/lib/perl5/5.10.0
    /usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.10.0
    .

---
Environment for perl 5.10.0:
    HOME=/home/teejay
    LANG=en_GB.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/teejay/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


-- 
Aaron J Trevena, BSc Hons
http://www.aarontrevena.co.uk
LAMP System Integration, Development and Consulting


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About