in reply to eval use, exported functions, barewords

To use bareword sub calls the subroutines musted be declared compiled before the bareword is seen so perl knows what to do with it. But since foo; and foo() are functionally equivalent it shouldn't really be an issue.
HTH

_________
broquaint

update: clarified explanation, thanks to diotalevi

  • Comment on Re: eval use, exported functions, barewords

Replies are listed 'Best First'.
Re: Re: eval use, exported functions, barewords
by diotalevi (Canon) on Nov 07, 2003 at 18:48 UTC

    musted be compiled
    No, it must be declared first. Compilation can happen later.

    sub foo; # declaration foo; # call the function sub foo { ... } # definition