Subject: Re: Guy Steele interview in DDJ
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 15 Apr 2005 05:07:26 -0500
Newsgroups: comp.lang.scheme,comp.lang.lisp
Message-ID: <68SdnRH-8brDD8LfRVn-rQ@speakeasy.net>
Fernando Rodriguez  <frr@THOU_SHALL_NOT_SPAMeasyjob.net> wrote:
+---------------
| Do you know of any quick intro to the new cool aspects of perl,
| for experienced programmers? 
+---------------

"Advanced Perl Programming", by Sriram Srinivasan
<http://www.oreilly.com/catalog/advperl/>. It was there that I
first found out that Perl "glob"s are really very much like CL
symbols, that is, a data structure with several slots -- except
that Perl has chosen a particular reader macro character (or case)
as an explicit indicator of each slot:

    $              for the scalar value binding, e.g., $foo
    @              for the array value binding
    %              for the associative-array value binding
    Capitalization for the I/O stream binding, e.g., FOO
    *              for "the symbol itself" (a.k.a. the "glob"), which
                   gives access to *all* of the bindings (and which
                   is the only way, AFAIK, to pass an I/O stream as
                   a parameter).

(And maybe "&" for the function binding? I forget...)


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607