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

[ID 20000404.026] glob() .1 syntax error

Thread Next
From:
Ronald J Kimball
Date:
April 5, 2000 07:42
Subject:
[ID 20000404.026] glob() .1 syntax error
Message ID:
20000405104218.B318170@linguist.dartmouth.edu

Here's my bug report from yesterday.  It was entered into the database, but
I don't think it ever went to p5p.

I find the problem described below very curious and I'd be interested to
know what caused the change in behavior (and whether it's desirable :) .

Ronald



This is a bug report for perl from rkimball@linguist.dartmouth.edu,
generated with the help of perlbug 1.28 running under perl v5.6.0.


-----------------------------------------------------------------
[Please enter your report here]

The following code which worked in 5.005_03 causes a syntax error
in v5.6.0:

perl -le 'print <*> .1'


C:/temp/tmpdir> ls
bar  foo

C:/temp/tmpdir> perl5.00503 -le 'print <*> .1'
bar1
C:/temp/tmpdir> perl5.6.0 -le 'print <*> .1'
syntax error at -e line 1, near "<*> .1"
Execution of -e aborted due to compilation errors.


The syntax error occurs for an explicit glob() as well:

C:/temp/tmpdir> perl5.00503 -le 'print glob(q{*}) .1'
bar1
C:/temp/tmpdir> perl5.6.0 -le 'print glob(q{*}) .1'
syntax error at -e line 1, near ") .1"
Execution of -e aborted due to compilation errors.


If a space is added between the period and the number, or
the glob() is changed to some other function name, the
code compiles and runs under 5.6.0.

C:/temp/tmpdir> perl5.6.0 -le '@a=q{bar}; print pop(@a) .1'
bar1


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=medium
---
Site configuration information for perl v5.6.0:

Configured by rkimball at Fri Mar 24 12:36:06 2000.

Summary of my perl5 (revision 5 version 6 subversion 0) configuration:
  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    usethreads=undef use5005threads=undef useithreads=define
usemultiplicity=define
    useperlio=undef d_sfio=undef uselargefiles=undef 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='cl', optimize='-O1 -MD -DNDEBUG', gccversion=
    cppflags='-DWIN32'
    ccflags ='-O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT
-DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-DPERL_MSVCRT_READFIX'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=4
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='link', ldflags ='-nologo -nodefaultlib -release
-libpath:"C:\Perl5.6.0\lib\CORE"  -machine:x86'
    libpth="C:\Program Files\Microsoft Visual Studio\VC98\mfc\lib"
"C:\Program Files\Microsoft Visual Studio\VC98\lib" "c:\program
files\devstudio\vc\lib" "c:\program files\devstudio\vc\mfc\lib" "%lib%"
"C:\Perl5.6.0\lib\CORE"
    libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib
uuid.lib wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib
msvcrt.lib
    libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl56.lib
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -release
-libpath:"C:\Perl5.6.0\lib\CORE"  -machine:x86'

Locally applied patches:
    ACTIVEPERL_LOCAL_PATCHES_ENTRY

---
@INC for perl v5.6.0:
    C:/Perl5.6.0/lib
    C:/Perl5.6.0/site/lib
    .

---
Environment for perl v5.6.0:
    HOME=c:\
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Perl5.6.0\bin\;C:\Perl\bin; [...]
    PERL_BADLANG (unset)
    SHELL=c:\bin\tcsh.exe

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