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

[perl #122661] Documentation "The Ellipsis Statement" of perlsyn

Thread Previous | Thread Next
From:
ina cpan
Date:
August 31, 2014 07:44
Subject:
[perl #122661] Documentation "The Ellipsis Statement" of perlsyn
Message ID:
rt-4.0.18-27510-1409471038-394.122661-75-0@perl.org
# New Ticket Created by  ina cpan 
# Please include the string:  [perl #122661]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=122661 >


This is a bug report for perl from ina.cpan@gmail.com,
generated with the help of perlbug 1.40 running under perl 5.20.0.

-----------------------------------------------------------------
The Ellipsis Statement of http://perldoc.perl.org/perlsyn.html said,

You can use a ; inside your block to denote that the { ... } is a
block and not a hash reference constructor. Now the ellipsis works:

1. @transformed = map {; ... } @input; # ; disambiguates
2.
3. @transformed = map { ...; } @input; # ; disambiguates

But results are:

C:\>c:\strawberry\perl520\bin\perl -ce "map{;...}()"
-e syntax OK

C:\>c:\strawberry\perl520\bin\perl -ce "map{...;}()"
syntax error at -e line 1, near "{..."
-e had compilation errors.

-----------------------------------------------------------------
---
Flags:
category=docs
severity=low
---
Site configuration information for perl 5.20.0:

Configured by strawberry-perl at Fri May 30 23:27:10 2014.

Summary of my perl5 (revision 5 version 20 subversion 0) configuration:

Platform:
osname=MSWin32, osvers=6.2, archname=MSWin32-x86-multi-thread-64int
uname='Win32 strawberry-perl 5.20.0.1 #1 Fri May 30 23:25:11 2014 i386'
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags =' -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -fwrapv
-fno-strict-aliasing -mms-bitfields',
optimize='-s -O2',
cppflags='-DWIN32'
ccversion='', gccversion='4.8.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='long long',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE"
-L"C:\strawberry\c\lib"'
libpth=C:\strawberry\c\lib C:\strawberry\c\i686-w64-mingw32\lib
C:\strawberry\c\lib\gcc\i686-w64-mingw32\4.8.2
libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=, so=dll, useshrplib=true, libperl=libperl520.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE"
-L"C:\strawberry\c\lib"'


---
@INC for perl 5.20.0:
C:/strawberry/perl520/site/lib
C:/strawberry/perl520/vendor/lib
C:/strawberry/perl520/lib
.

---
Environment for perl 5.20.0:
HOME (unset)
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=C:\Perl\bin\MSWin32-x86-object;C:\Perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program
Files\Intel\DMIX
PERL_BADLANG (unset)
SHELL (unset)


Thread Previous | 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