garu / Data-Printer

colored pretty-print of Perl data structures and objects
100 stars 81 forks source link

Ensure that core boolean support doesn't fail on perls older than 5.36 #190

Closed leonerd closed 8 months ago

leonerd commented 8 months ago

Your most recent version works fine on Perl 5.36+ but fails on earlier perls due to not having the experimental::builtin warning category. This PR fixes it by only quieting it conditionally on being a supporting perl version.

Additionally there's no need to pull in builtin.pm, because the builtin functions are always built in to the interpreter and always available on Perl 5.36 or later.