Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-12-17 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (466 votes). Check out past polls.

    Notices?