]> Sergey Matveev's repositories - public-inbox.git/commit
import: modernize to use Perl 5.10 features
authorEric Wong <e@yhbt.net>
Mon, 1 Jun 2020 10:06:48 +0000 (10:06 +0000)
committerEric Wong <e@yhbt.net>
Wed, 3 Jun 2020 04:04:21 +0000 (04:04 +0000)
commit7d05666ef3a5750c85e481a0c034f1c34f1b70b9
treea5f98e508e4c4378d460bbb15f2f6c8e8f833078
parentf9a09f604df73297388af442114d14346dc30d46
import: modernize to use Perl 5.10 features

First, prefer the leaner "parent" module over the heavy "base"
module to establish ISA relationships, since "base" is only
needed for "fields".

The "//" and "//=" operators allow us simplify our code and fix
minor bugs where a value of "0" was disallowed.  Yes, we'll
allow "0" as an email address, too, since some twisted BOFH
could theoretically use it as a local user name.

Going forward, we'll also be avoiding "use warnings" and
instead rely on `-w' in the shebang.
lib/PublicInbox/Import.pm