At 03:53 PM 3/31/00 -0800, Tom Phoenix wrote:
>On Fri, 31 Mar 2000, Peter Scott wrote:
>
> > ObPerl: How to explain to a class of complete novices why parens are
> needed
> > in my ($x, $y); but if you follow a general rule of "put parens in
> > everywhere until you figure out where you can leave them out" you get
> > benign warnings "foo(...) interpreted as function"...
>
>Can you give an example of real-world, correct code which causes a
>"benign" warning about something being interpreted as a function? As far
>as I can see, if you get that warning, there's something you should be
>attentive to. But maybe your dictionary defines "benign" differently than
>mine. :-)
sub foo {
print ("Ack, no arguments!\n"), return unless @_;
# Life goes on...
}
5.004, 5.005, and 5.6.0.
Yes, I know TMTOWTDI...
--
Peter Scott
Pacific Systems Design Technologies