On Fri, 9 Nov 2001 09:08:04 -0800 (PST), Larry Wall wrote:
> Piers Cawley writes:
> : sub assert_with_func (&^sub is constant, $^expected is constant,
> : $^got, $message)
> : {
> : &^sub($expected, $got) or die $message || $default_message;
> : }
> :
> : Here's hoping it will work.
>
> That's my intention.
Great, since this is the first rendition of that code which I can actually
understand. However, Piers' typo brings up another question. In the body of
such a sub, is it OK to leave out the carets, like $got and $expected do, or
are they required, like &^sub ?
--
Peter Haworth [EMAIL PROTECTED]
In Cyberspace no one can hear you scream, unless they have a sound card.