On Thu, 2002-09-12 at 09:58, Piers Cawley wrote:

> > sub odd($n);
> >
> > first to declare the function. This gets you a warning about redefining
> > odd, but that's ignorable.
> 
> Odd... could have sworn I tried that. And I was under the impression
> that official format for this was C<< sub odd($n) {...} >>, which
> definitely doesn't work.

Heh. The advantage of being clueless. I was just using the Perl 5
syntax, and it worked. Never knew there was an "official format" :)

I ran into this when I was writing sprintf, because I tried to bury all
of the private support functions at the end of the file.

-- 
Aaron Sherman <[EMAIL PROTECTED]>
http://www.ajs.com/~ajs

Reply via email to