"Octavian Rasnita" <[EMAIL PROTECTED]> writes:

> I have tried creating a .exe file under Windows with perlapp, and that file
> creates a Win32::GUI::MessageBox but when I create the .exe file, it gives
> the following error:
> 
> Carp:
> error: Can't locate Carp
> refby: D:\usr\site\lib\URI\virtual.pm line 65
> 
> I have seen that in that module contains the following line (65):
> 
>  require "Carp";
> 
> I have removed the quotes, and now I can create the .exe file without
> errors. But is this ok?

Yes it is.  The statement above is basically bogus and does not work
with perl.  Well, it might actually succeed in places where perl is
able to read directories as files.

There is a change[1] in perl-5.8.8 that makes it refuse to load
directories as files so this might be why you noticed this bug now.
On Linux I get:

  $ /opt/perl/ap815/bin/perl -e 'require "Carp"'
  Carp did not return a true value at -e line 1.
  $ /opt/perl/ap816/bin/perl -e 'require "Carp"'
  Directory /opt/perl/ap816/lib/5.8.8/Carp not allowed in require at -e line 1.

BTW, the statement:

  require Carp

is translated by perl into:

  require "Carp.pm"

Regards,
Gisle Aas,
ActiveState


[1] http://public.activestate.com/cgi-bin/perlbrowse?patch=26373
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to