> > 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 > "..."? That's right. That's why I said it didn't mean what he thought it meant. In Perl 6 it might (one devoutly hopes) print out the equivalent source code for the subroutine. Damian
- 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
- Damian Conway