On Tue, 22 Jun 2010, Adam Kennedy via RT wrote:
[...] 
> The problem is that you can't avoid doing this importing even if you
> want to.
> 
> The following does not work.
> 
>   use Wx ();
> 
>   my $value = Wx::wxDefaultPosition;

Yes, because Wx::wxDefaultPosition is just a bareword here, so it will
be interpreted as a string literal if the function has not yet been
defined. It should work correctly if you add parenthesis though:

    my $value = Wx::wxDefaultPosition();

Cheers,
-Jan


Reply via email to