Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Quoting package names

by Anonymous Monk
on May 26, 2015 at 21:40 UTC ( [id://1127900]=note: print w/replies, xml ) Need Help??


in reply to Quoting package names

The question is: why the ... i see quoted package names everywhere?

Because style is style and barewords have long been out of style

also, :: require shifting whereas qw// doesn't (yes I know you used () )

Replies are listed 'Best First'.
Re^2: Quoting package names
by hurricup (Pilgrim) on May 27, 2015 at 03:18 UTC

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

      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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1127900]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found