in reply to Prototype problem
I think your problem is with scoping -- not prototyping. Line 55 would be that call to in_time_date() no doubt. You are passing in 7 variables that aren't defined anywhere. The ones with the same names and my lexical scoping in the function itself are different variables, private to that function. Perl will assume any undeclared variables are package variables, so it wants you to explicitly tell it where they're declared. If you turn off strict checking it will happily assume they're in the current package and create them on the fly. I wouldn't recommend this personally though -- I prefer explicit scoping and strict to avoid unexpected side effects.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Prototype problem
by nlafferty (Scribe) on Jan 01, 2002 at 00:59 UTC | |
by steves (Curate) on Jan 01, 2002 at 08:04 UTC |