So, this is with the evil MacPerl. This is some legacy code, using a legacy module, and "nobody changed anything." The idea is that the users, on their OS 9 desktops, mount a CD and drag it onto this icon, and it does some stuff. Suddenly, it has started failing with the following error:
#Foo/Foo.pm did not return a true value
File 'executable/perl/file'; Line 1
# BEGIN failed - compilation aborted
File 'executable/perl/file'; Line 1
... propagated
File 'executable/perl/file'; Line 2
I am at a loss. I've never touched MacPerl before. Any ideas or wisdom?
FWIW, here is part of the now-non-working code (junk.plx):
use Foo::Foo qw(declare_text);
use File::WalkTree;
use strict;
require 'env.pl';
# ... do some stuff
exit;
__END__
And here is part of Foo::Foo:
package Foo:Foo;
use strict;
# ... a buncha stuff here
sub declare_text { # noop if this isn't under MacPerl
if($MacPerl::Version) {
foreach my $item (@_) {
&MacPerl::SetFileInfo('R*ch', 'TEXT', $item);
}
}
return;
}
#... more stuff
1;
__END__
I'm kind of concerned about the lack of a shebang in the .plx file, but that could just be a MacPerl weirdness.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.