> > 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
> > };
"I do not thin' that means wha' you thin' it means".
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
}
So C<with> is going to have to do some pretty freaky magic to work out
it should call that sub as part of the C<print>. And call it with a
specifically ordered argument list.
However, your suggestion *did* spark an excellent idea for me to do,
with named placeholders and named subroutine parameters. Many thanks!
Damian