2003-08-23 17:43:09 -- String found where operator expected at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 419, near "croak "Cannot chdir to $path: $!"" 2003-08-23 17:43:09 -- (Do you need to predeclare croak?) 2003-08-23 17:43:09 -- String found where operator expected at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 422, near "croak "Cannot chdir back to $cwd: $!"" 2003-08-23 17:43:09 -- (Do you need to predeclare croak?) 2003-08-23 17:43:09 -- syntax error at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 364, near "carp "stat($start): $!"" syntax error at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 375, near "carp "opendir($dotdots): $!"" syntax error at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 380, near "carp "stat($dotdots): $!"" syntax error at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 394, near "carp "readdir($dotdots): $!"" syntax error at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 419, near "croak "Cannot chdir to $path: $!"" syntax error at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 422, near "croak "Cannot chdir back to $cwd: $!"" BEGIN not safe after errors--compilation aborted at /usr/libdata/perl5/i386-openbsd/5.8.0/Cwd.pm line 506. -bash-2.05b#
It looks like a problem with Carp.pm. Run your program as:
perl -WMCarp program-name
and if it still doesn't help, then maybe try reinstalling Carp.pm from CPAN:
perl -MCPAN -eshell
and write:
install Carp
Maybe you have some other Carp.pm in your @INC? Carp.pm has to be loaded, since you don't have any error like this:
Can't locate Carp.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .). BEGIN failed--compilation aborted.
while Cwd.pm has "use Carp" but for some reason its symbols are not being exported properly. This should find every Carp.pm which might be used:
perl '-le-f($_="$_/Carp.pm")&&print [EMAIL PROTECTED]'
Is there more than one module? Does it look like http://search.cpan.org/src/JHI/perl-5.8.0/lib/Carp.pm?
-zsdc.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]