Say::Compat - Backwards compatibility wrapper for say()
use Say::Compat; say "Hello world!"; say STDERR "Hello error!";
This is a compatibility layer to allow Perl code to use say() without sacrificing backwards compatibility. Simply use the module in your code and it will do the right thing.
say()
When used on a Perl before 5.10, it will load Perl6::Say.
When used on 5.10 or later it will load the built in say().
Perl6::Say does not fully emulate all the syntax of the real say. Therefore, to avoid incompatibilities, you must code to its limitations. See the documentation for Perl6::Say for details.
Future versions may use a different module to emulate say, but they will strive to avoid
To install Say::Compat, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Say::Compat
CPAN shell
perl -MCPAN -e shell install Say::Compat
For more information on module installation, please visit the detailed CPAN module installation guide.