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

"Advanced Perl Programming", by Sriram Srinivasan
<>. 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 Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607