That only works if Carp was already loaded. In older versions of Perl, there was a common pragma (vars?) that loaded it, but that no longer is loaded in 5.10.require Carp; Carp::croak "some message";
Hence the error. And another reason to not use List::MoreUtils.
In reply to Re^3: Beware List::MoreUtils natatime()!
by JavaFan
in thread Beware List::MoreUtils natatime()!
by samtregar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |