in reply to Re^3: object version does not match
in thread object version does not match
> I don't think that's actually happening.
> On a case-sensitive system (which yours is ?) "use B;" will not load b.pm because of the case mismatch.
You are right that 5.26.2 is not ignoring b.pm on my old system, but believe it or not it IS using b.pm, and since the version matched it worked. On my new box 5.38.2 was also trying to use b.pm so I renamed it and the problem evaporated. I'm not using apache on the new box yet, even though macs come with 2.4.56 included, but morbo is not bothered by b.pm for some reason.
I don't know why but on macOS you can type perldoc data::dumper and it will work, but on Linux you must spell it Data::Dumper. You can also use lowercase module names when using them in one liners for OO modules, but to call functions you must use the proper case:
perl -Mdata::dumper -we'$d=Data::Dumper->new(\@ARGV);print$d->Dump' fo +o bar
$VAR1 = 'foo'; $VAR2 = 'bar';
Undefined subroutine &main::Dumper called at -e line 1.perl -Mdata::dumper -we'print Dumper(\@ARGV)' foo bar
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: object version does not match
by hippo (Archbishop) on May 10, 2024 at 06:39 UTC | |
by Anonymous Monk on May 10, 2024 at 20:02 UTC | |
by etj (Priest) on May 11, 2024 at 10:56 UTC | |
by Anonymous Monk on May 13, 2024 at 23:33 UTC | |
by syphilis (Archbishop) on May 14, 2024 at 01:50 UTC | |
|