Search code examples
perlposix

POSIX (isprint) has been deleted; what to do?


A Perl modules uses

use POSIX qw(isprint);

Which has been removed from Perl's POSIX.

Is there a work around for this?


Solution

  • The documentation states:

    isprint

    This function has been removed as of v5.24. It was very similar to matching against qr/ ^ [[:print:]]+ $ /x, which you should convert to use instead. (...)

    (emphasis: me)

    So I guess this very likely answers your question.