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
From:
Brian McCauley
Date:
April 27, 2000 12:29
Subject:
[ID 20000427.005] perlref.pod does not mention ref in string ornumeric context
Message ID:
200004271929.UAA00712@wcl-l.bham.ac.uk
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:
  Platform:
    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
  Compiler:
    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:
    /home/bam/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=/home/bam
    LANG=POSIX
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/bam/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/var/lib/dosemu:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde/bin:.
    PERL5LIB=/home/bam/perl5
    PERL_BADLANG (unset)
    SHELL=/bin/bash
---
--- 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About