Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use Fatal 'truncate' not very usable #2033

Closed
p5pRT opened this issue Jun 1, 2000 · 3 comments
Closed

use Fatal 'truncate' not very usable #2033

p5pRT opened this issue Jun 1, 2000 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 1, 2000

Migrated from rt.perl.org#3311 (status was 'resolved')

Searchable as RT3311$

@p5pRT
Copy link
Author

p5pRT commented Jun 1, 2000

From D@i-works.com

Created by tushar@zeppo.i-2.com

prototype('CORE​::truncate') is '$$', but truncate can also take a
filehandle. This code doesn't compile​:

perl -c -Mstrict -MFatal=truncate -e 'truncate(F,0)'
Bareword "F" not allowed while "strict subs" in use at -e line 1.

Perl Info


Site configuration information for perl 5.00503:

Configured by tushar at Mon Jul 12 10:58:12 CDT 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=linux, osvers=2.0.32, archname=i586-linux
    uname='linux zeppo.i-2.com 2.0.36 #1 tue oct 13 22:17:11 edt 1998 i586 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='-O2', gccversion=2.7.2.3
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    MAINT_TRIAL_1 - 5.005_03 maintenance trial 1


@INC for perl 5.00503:
    /home/tushar/lib/perl5/i586-linux
    /home/tushar/lib/perl5
    /usr/lib/perl5/5.00503/i586-linux
    /usr/lib/perl5/5.00503
    /usr/lib/perl5/site_perl/5.005/i586-linux
    /usr/lib/perl5/site_perl/5.005
    .


Environment for perl 5.00503:
    HOME=
    LANG (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=
    PERL5LIB=
    PERLMANPATH=
    PERL_BADLANG (unset)
    SHELL=/bin/zsh



@p5pRT
Copy link
Author

p5pRT commented Apr 6, 2010

From @chorny

Rereported as https://rt.cpan.org/Ticket/Display.html?id=56316

On Thu Jun 01 11​:22​:52 2000, D@​i-works.com wrote​:

This is a bug report for perl from tushar@​zeppo.i-2.com,
generated with the help of perlbug 1.26 running under perl 5.00503.

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

prototype('CORE​::truncate') is '$$', but truncate can also take a
filehandle. This code doesn't compile​:

perl -c -Mstrict -MFatal=truncate -e 'truncate(F,0)'
Bareword "F" not allowed while "strict subs" in use at -e line 1.

[Please do not change anything below this line]
-----------------------------------------------------------------

--
Alexandr Ciornii, http​://chorny.net

@p5pRT
Copy link
Author

p5pRT commented Apr 6, 2010

@chorny - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant