Damian Conway wrote:
> This:
>
> print <<SPAM;
> Dear ^name:
> Your tuition is now due. Please send in a payment of at least
> ^minumum.
> SPAM
>
> already means:
>
> print sub {
> return <<SPAM;
> Dear $_[0]
> Your tuition is now due. Please send in a payment of at least
> $_[1].
> SPAM
> }
What does the second one mean, then? Doesn't
print sub { ... }
just print out a reference to an anonymous subroutine, for any value of
"..."?
--
Robert Mathews
Software Engineer
Excite@Home
- Re: pascal-like "with" was Re: Default filehandle... Damian Conway
- Re: pascal-like "with" was Re: Default fileh... Clayton Scott
- Re: pascal-like "with" was Re: Default fileh... Robert Mathews
- Re: pascal-like "with" was Re: Default fileh... Damian Conway
