Babble::Plugin::DefinedOr - Plugin for defined-or (//) syntax
Converts usage of the defined-or syntax from
$foo // $bar
to
(map +(defined($_) ? $_ : $bar), $foo)[0]
// syntax
To install Babble, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Babble
CPAN shell
perl -MCPAN -e shell install Babble
For more information on module installation, please visit the detailed CPAN module installation guide.