Hm. There are still plenty of places where references to typeglobs are relevant in Perl5:

  1. File handles: Even lexical file handles are references to an underlying typeglob:
    open my $fh, '>', 'fred.junk'; Dump( $fh );; SV = RV(0x3c728b0) at 0x3c728a0 REFCNT = 1 FLAGS = (PADMY,ROK) RV = 0x3c72950 SV = PVGV(0x3c82d38) at 0x3c72950 REFCNT = 1 FLAGS = () NAME = "$fh" NAMELEN = 3 GvSTASH = 0x36bde0 "main" GP = 0x3c93298 SV = 0x0 REFCNT = 1 IO = 0x3c72168 FORM = 0x0 AV = 0x0 HV = 0x0 CV = 0x0 CVGEN = 0x0 LINE = 1 FILE = "(eval 18)" FLAGS = 0x0 EGV = 0x3c72950 "$fh"
  2. Directory handles: Even lexical ones:
    opendir my $dir, '.'; Dump( $dir );; SV = RV(0x2762e8) at 0x2762d8 REFCNT = 1 FLAGS = (PADMY,ROK) RV = 0x3c721e0 SV = PVGV(0x3c82d38) at 0x3c721e0 REFCNT = 1 FLAGS = () NAME = "$dir" NAMELEN = 4 GvSTASH = 0x36bde0 "main" GP = 0x3c93298 SV = 0x0 REFCNT = 1 IO = 0x3c72198 FORM = 0x0 AV = 0x0 HV = 0x0 CV = 0x0 CVGEN = 0x0 LINE = 1 FILE = "(eval 22)" FLAGS = 0x0 EGV = 0x3c721e0 "$dir"
  3. Coderefs: Every time you call, or cause to be called, a subroutine indirectly:
    sub cmp { $_[0] <=> $_[1] };; Dump( \&cmp );; SV = RV(0x2762e8) at 0x2762d8 REFCNT = 1 FLAGS = (TEMP,ROK) RV = 0x3c72858 SV = PVCV(0x3c5a028) at 0x3c72858 REFCNT = 2 FLAGS = () COMP_STASH = 0x36bde0 "main" START = 0x3d0ef48 ===> 0 ROOT = 0x3d0eed0 GVGV::GV = 0x3c721f8 "main" :: "cmp" FILE = "(eval 9)" DEPTH = 0 FLAGS = 0x0 OUTSIDE_SEQ = 1935 PADLIST = 0x3c72840 PADNAME = 0x3c72828(0x3cf7358) PAD = 0x3c72210(0x3cf7618) OUTSIDE = 0x36beb8 (UNIQUE)

Being dismissive of these more obscure but still totally current and relevant areas of Perl because you rarely interact with them directly or don't understand them is of no help to anyone.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^2: Dereferencing a reference to a typeglob? by BrowserUk
in thread Dereferencing a reference to a typeglob? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.