in reply to Re: Quoting package names
in thread Quoting package names

I'm just stupid again. This doesn't work with use strict. Sorry. :)

Replies are listed 'Best First'.
Re^3: Quoting package names
by ambrus (Abbot) on May 27, 2015 at 09:36 UTC

    Actually, it does work with strict. The trailing double colon is magical.

    However, "Foo" isn't longer than Foo:: and everyone knows what the former means, so there's usually not much point of writing the latter.

      Probably meant it causes a warning :)

      $ perl -le"use strict; use warnings; use parent qw/ CGI FCGI/; " $ perl -le"use strict; use warnings; use parent CGI::, FCGI::; " Bareword "CGI::" refers to nonexistent package at -e line 1. Bareword "FCGI::" refers to nonexistent package at -e line 1.