Dave Storrs wrote:
> 
> On Wed, 16 Aug 2000, David L. Nicol wrote:
> 
> > Anyone for generalizing "select" to a more general "with" keyword
> > which would operate on a limited hash and be syntactic sugar for
> > replacing all appearances of unqualified variables that match
> > the hash's keys with references into it?
> >
> >       %record = loadrecord($studentID);
> >       with %record {
> >               print <<SPAM;
> >       Dear $Name:
> >               Your tuition is now due.  Please send in a payment
> >       of at least $Minumum.
> >
> >       SPAM
> >
> >       # anyone for having a python-like floating left edge for
> >       # retaining indentation of hereis strings?
> >
> >       };


This seems less of a leap of logic/faith:
%record = loadrecord($studentID);
with %record {
    print <<SPAM;
        Dear ^name:
        Your tuition is now due.  Please send in a payment of at least 
        ^minumum.
SPAM
};


Clayton
-- 
Clayton Scott

Reply via email to