[perl #128769] Improve base.pm @INC '.' handling
authorFather Chrysostomos <[email protected]>
Sun, 31 Jul 2016 20:51:36 +0000 (13:51 -0700)
committerFather Chrysostomos <[email protected]>
Sun, 31 Jul 2016 20:53:05 +0000 (13:53 -0700)
commitbca552795994a553e07b38a6f82a233533919926
treee2c51131490a4c22ccd88f5802a4807773033160
parent10030f4b9e57e68d03a6b1eb1a9bed9fb389e8ac
[perl #128769] Improve base.pm @INC '.' handling

• Localise @INC only if necessary.
• Don’t mention '.' in the @INC list in the error message, since it
  was not in the @INC that was searched (this is accomplished by local-
  ising @INC in the same scope as the error).
• If a file exists that would have been loaded had '.' not been
  ignored, mention it and suggest ‘use lib’.
• Use the same number of closing as opening parentheses in the
  error message.
MANIFEST
dist/base/lib/base.pm
dist/base/t/incdot.t [new file with mode: 0644]