develooper Front page | perl.perl5.porters | Postings from April 2000

[ID 20000427.005] perlref.pod does not mention ref in string ornumeric context

Thread Next
Brian McCauley
April 27, 2000 12:29
[ID 20000427.005] perlref.pod does not mention ref in string ornumeric context
Message ID:
Site configuration information for perl 5.00503:

Configured by root at Fri Aug  6 19:41:10 GMT 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
    osname=linux, osvers=2.2.10, archname=i586-linux
    uname='linux pascal 2.2.10 #4 fri jun 11 12:33:54 mest 1999 i686 unknown '
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
    cc='cc', optimize='-O2 -pipe', gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
    cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
    stdchar='char', d_stdstdio=undef, 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:

@INC for perl 5.00503:

Environment for perl 5.00503:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)
--- perlref.pod	Fri Aug  6 20:49:33 1999
+++ -	Thu Apr 27 20:28:44 2000
@@ -397,6 +397,16 @@
 The ref() operator may be used to determine what type of thing the
 reference is pointing to.  See L<perlfunc>.
+If you try to use a reference like a string, you get strings like
+	ARRAY(0x80f5dec)   or    HASH(0x826afc0)
+If you try to use a reference like a number you get the pure address
+which is not in itself much use unless you are into beep black magic.
+A side effect of these representations is that you can use C<eq> or
+C<==> to see if two references refer to the same thing.
 The bless() operator may be used to associate the object a reference
 points to with a package functioning as an object class.  See L<perlobj>.

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About