Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a module has been assimilated into the language, the original module is still available in CPAN, but its use is deprecated. Do not import deprecated modules. It is perfectly valid to use their features as they are now integrated into the core language.

...

This noncompliant code example uses the Perl 4 ' syntax to import an external package. This code does successfully require the package, but as but because Perl 5 is over 15 years ago, the Perl 4 syntax has largely been forgotten. Consequently, the code can be seen as confusing or arcane.

Code Block
bgColor#ffcccc
langperl

require DBI'SQL'Nano;

Compliant Solution (Universal::can())

...

Code Block
bgColor#ccccff
langperl

require DBI::SQL::Nano;

Risk Assessment

...