Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Perl allows package names consisting entirely of colons

by tobyink (Abbot)
on Nov 27, 2012 at 13:33 UTC ( #1005856=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -Mstrict -Mwarnings -E'package main; say __PACKAGE__'
    main
    ...
    ::
    $ perl -Mstrict -Mwarnings -E'package ::::; say __PACKAGE__'
    ::::
    
  2. or download this
    {
        package main;
    ...
    say ::xxx();      # 0
    say ::::xxx();    # 1
    say ::::::xxx();  # 2
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2014-07-25 16:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (174 votes), past polls