Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

new Thread return value described incorrectly in perlthrtut.pod #1139

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

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

Searchable as RT2100$

p5pRT commented 24 years ago

From dzerkel@cas.org

Created by dzerkel@cas.org

*** pod/perlthrtut.pod.orig Fri Feb 4 11​:05​:52 2000 --- pod/perlthrtut.pod Fri Feb 4 11​:07​:34 2000 *************** *** 278\,285 ****   }  
 
! The subroutine runs like a normal Perl subroutine\, and the call to new ! Thread returns whatever the subroutine returns.  
  The last example illustrates another feature of threads. You can spawn   off several threads using the same subroutine. Each thread executes --- 278\,286 ----   }  
 
! The subroutine runs like a normal Perl subroutine. The call to new ! Thread returns a Thread which can be used to get the return value of ! the new thread (see join below).  
  The last example illustrates another feature of threads. You can spawn   off several threads using the same subroutine. Each thread executes

Perl Info ``` Site configuration information for perl 5.00563: Configured by dxz29 at Tue Feb 1 13:17:45 EST 2000. Summary of my perl5 (revision 5.0 version 5 subversion 63) configuration: Platform: osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi uname='sunos dxz29awu 5.6 generic_105181-16 sun4u sparc sunw,ultra-5_10 ' config_args='-Dusethreads -Dusemultiplicity' hint=recommended, useposix=true, d_sigaction=define usethreads=define useperlio=undef d_sfio=undef use64bits=undef usemultiplicity=define Compiler: cc='/vol/SUNWspro6.1.p1/bin/cc', optimize='-fast -xO5 -xtarget=ultra2i -xcache=16/32/1:256/64/1', gccversion= cppflags='-D_REENTRANT' ccflags ='-D_REENTRANT -DUSE_LONG_LONG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' 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='/vol/SUNWspro6.1.p1/bin/cc', ldflags =' ' libpth=/lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lposix4 -lpthread -lc -lcrypt -lsec libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-KPIC', lddlflags='-G' Locally applied patches: @INC for perl 5.00563: /ldatae/perl5.5.63/lib/5.00563/sun4-solaris-thread-multi /ldatae/perl5.5.63/lib/5.00563 /ldatae/perl5.5.63/lib/site_perl/5.00563/sun4-solaris-thread-multi /ldatae/perl5.5.63/lib/site_perl . Environment for perl 5.00563: HOME=/home/dxz29 LANG=C LANGUAGE (unset) LD_LIBRARY_PATH=/ldatae/dxz29/lib:/lprod/cas/lib:/usr/openwin/lib:/usr/lib:/usr/dt/lib LOGDIR (unset) PATH=/ldatae/dxz29/bin:/home/dxz29/bin/sun4:/home/dxz29/bin:/lprod/cas/bin:/usr/local/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/cas/bin/sun4:/cas/abin/sun4:/cas/X11/sun4/bin:/usr/ccs/bin:/uprod/bin:/usr/sbin:/cas/tools/bin/sun4:/cas/X11/sun4/tools/bin:/usr/ucb:/home/dxz29/bin:/usr/perl5/bin:/projects/clearcase/bin:/usr/atria/bin:/sbin:/projects/sprs_lwv/bin PERL_BADLANG (unset) SHELL=/bin/ksh ```