Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a Perl script detect whether it's running under Activestate vs Strawberry Perl?

I have a Perl script I'm still trying to debug and in the process I've noticed that it behaves differently running under ActivePerl and Strawberry Perl.

This has led me to wonder how a Perl script might detect under which of these flavours it is running.

like image 274
hippietrail Avatar asked Dec 17 '22 16:12

hippietrail


1 Answers

You can examine how both perls have been compiled with

perl -V

Once you find what difference is causing your problem, you can detect specific feature using Config package. To list all settings:

perl -MConfig -MData::Dump -e "dd \%Config"
like image 101
bvr Avatar answered May 01 '23 21:05

bvr