in reply to Re: Function Prototypes
in thread Function Prototypes
When I removed the parentheses from my subroutine (sorry for using function before) definition, the error ceased to appear.
Updated: Given what Zaxo said below, why does the error disappear when I remove the perentheses from the subroutine definition? Since I am in fact no longer "prototyping" the subroutine, does it just relax and assume that I know what I'm doing when I call it before it has been defined? It seems that perl -w and use strict still ought to catch the fact that I'm calling the it before it's been defined.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Function Prototypes
by chromatic (Archbishop) on Jul 04, 2001 at 01:37 UTC |