https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7107
--- Comment #5 from Kevin A. McGrail <[email protected]> --- (In reply to Benny Pedersen from comment #4) > (In reply to Kevin A. McGrail from comment #2) > > Might be easier and safer to include a function that takes a parameter of > > min version perl and then returns 1/0 if version is equal or greater. > > was it not max perl version here ? I do not think so. I'm thinking the variable is the minimum perl version that works for the if loop. So if I am running 5.10.1 and I do if can(Mail::SpamAssassin::Conf::perl_version_required(5.8.8)) then the function will return 1 but If I pass if can(Mail::SpamAssassin::Conf::perl_version_required(5.10.2)), the the function will return 0. By using the "can" functionality, this should work for old versions of SA seamlessly to ignore the functionality as well as new versions. Theory is that old versions of SA won't have the function and will always fail. New versions of SA will have the function and will perform a test to see if they fail or not. It's a theory at this point. -- You are receiving this mail because: You are the assignee for the bug.
