in reply to Can't require MCE::Map (Strawberry)?
Unfortunately not a MCE expert, just a big promoter, but generally speaking use X is transalted with require X; import X LIST eventually inside BEGIN to mimicry exatly use
Consider, in StrawberryPerl:
C>perl -we "require MCE::Map; MCE::Map-> init(user_begin => sub {},use +r_end => sub {}); my @a = MCE::Map->run( sub { $_ }, [ 0 .. 9 ]);" # CTRL-C Terminating on signal SIGINT(2) MCE::shutdown: method is not allowed while running at -e line 0. END failed--call queue aborted, <__ANONIO__> line 80992. # LOOK HERE # C>perl -we "require MCE::Map; import MCE::Map; MCE::Map-> init(user_be +gin => sub {},user_end => sub {}); my @a = MCE::Map->run( sub { $_ }, + [ 0 .. 9 ]);" C>
L*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can't require MCE::Map (Strawberry)?
by Anonymous Monk on Mar 07, 2025 at 10:29 UTC | |
by etj (Priest) on Mar 08, 2025 at 15:43 UTC |