in reply to Re: Forward-referenceing subs
in thread Forward-referenceing subs

you wrote :
sub foo {} hasn't been seen yet
that means if you put the sub foo {} at the beggining of the source, everything would be ok!?

Replies are listed 'Best First'.
Re^3: Forward-referenceing subs
by diotalevi (Canon) on Jan 12, 2003 at 20:08 UTC

    Sure it'd work. But this just illuminates why it's a good idea to indicate that you mean to call a function by putting the parentheses on the end. Method calls are different though and have different rules so don't confuse the two.


    Fun Fun Fun in the Fluffy Chair