On Tue, 2008-12-30 at 09:08 -0600, David Ehresmann wrote: > this works, thanks. I thought you had to declare the function before > you called it? That is not right?
No, when you execute a Perl script, it is compiled before it is run. Therefore all subs are known before the script is run; they are pre-declared. However, Perl does allow dynamic programming. You can create subs while the program is running. BTW, don't use sub prototyping. It is not like prototypes in C and has limited usage. -- Just my 0.00000002 million dollars worth, Shawn Believe in the Gods but row away from the rocks. -- ancient Hindu proverb -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/