Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by tobyink (Canon)
on Nov 27, 2012 at 13:33 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1005856]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found