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

@_ is treated differently when in debugger #136

p5pRT opened this issue Jul 1, 1999 · 1 comment

@_ is treated differently when in debugger #136

p5pRT opened this issue Jul 1, 1999 · 1 comment


Copy link

@p5pRT p5pRT commented Jul 1, 1999

Migrated from (status was 'resolved')

Searchable as RT941$

Copy link

@p5pRT p5pRT commented Jul 1, 1999

From @gbarr

The script below gives different output when run with -d eg

$ perl /tmp/tst
AAA 1 2 3 4
123 1 2 3 4
123 1 2 3 4

$ perl -d -e 1
  DB<1> do "/tmp/tst";
AAA 1 2 3 4
123 1 2 3 4
AAA 1 2 3 4

This only happens when perl is compiled with threading enabled.

--%<----%<-- /tmp/tst --%<----%<----%<--

package AAA;

sub import {
  print join(" ",@​_,"\n");
  unshift @​_, '123';
  print join(" ",@​_,"\n");
  goto &{BBB->can('import')};

package BBB;

sub import {
  print join(" ",@​_,"\n");



Perl Info

Site configuration information for perl 5.00557:

Configured by gbarr at Wed Jun 30 17:00:46 CDT 1999.

Summary of my perl5 (revision 5.0 version 5 subversion 57) configuration:
    osname=solaris, osvers=2.5.1, archname=sun4-solaris-thread
    uname='sunos punch 5.5.1 generic_103640-26 sun4u sparc sunw,ultra-2 '
    config_args='-ders -D cc=gcc -D prefix=/home/gbarr/local/perl5.005_57 -D sitelib=/home/gbarr/local/site_perl -D optimize=-O2 -g -Dusethreads'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define useperlio=undef d_sfio=undef
    use64bits=undef usemultiplicity=undef
    cc='gcc', optimize='-O2 -g', gccversion=2.8.1
    cppflags='-D_REENTRANT -DDEBUGGING -I/usr/local/include'
    ccflags ='-D_REENTRANT -DDEBUGGING -I/usr/local/include'
    stdchar='unsigned 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=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lposix4 -lpthread -lc -lcrypt
    libc=, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'

Locally applied patches:

@INC for perl 5.00557:

Environment for perl 5.00557:
    LANGUAGE (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

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

Successfully merging a pull request may close this issue.

None yet
1 participant