develooper Front page | perl.perl5.porters | Postings from November 2003

[perl #24457] write() removes trailing spaces

Daniele Scarcella
November 10, 2003 15:55
[perl #24457] write() removes trailing spaces
Message ID:
# New Ticket Created by  "Daniele Scarcella (TEI)" 
# Please include the string:  [perl #24457]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.26 running under perl 5.00503.

[Please enter your report here]
There is a strange behaviour with the write() function, that is not documented:
a little program would be the best way to explain

format SOMETHING =
$a,  $b,  $c

$a = "a";
$b = "b";
$c = "c";

I'd expect something like this to be printed:

'a    b    c          '

What I get instead is

'a    b    c'

In the documentation there's no advice that trailing spaces will be automatically removed, nor a way to avoid that is descripted.

[Please do not change anything below this line]

Site configuration information for perl 5.00503:

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos localhost 5.8 sun4u sparc sunw,ultra-1 '
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    cc='cc', optimize='-xO3 -xdepend', gccversion=
    ccflags =''
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =''
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
    libc=/lib/, so=so, useshrplib=true,
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/perl5/5.00503/sun4-solaris/CORE'
    cccdlflags='-KPIC', lddlflags='-G'

Locally applied patches:

@INC for perl 5.00503:

Environment for perl 5.00503:
    LANG (unset)
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
    SHELL=/bin/csh Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About