Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
P is for Practical
 
PerlMonks  

package main

by rinceWind (Monsignor)
on Jul 17, 2004 at 08:45 UTC ( #375213=note: print w/ replies, xml ) Need Help??


in reply to Creating an object of class main, useful?

As an aside, you don't actually need to say package main;.

However, we might start seeing this appearing in perl 5 scripts in future, see Ensuring forward compatibility.

--
I'm Not Just Another Perl Hacker


Comment on package main
Download Code
Re: package main
by hattmoward (Friar) on Jul 17, 2004 at 17:08 UTC

    Not only for forward compatibility, but also for clarity. I know that you can look at something you wrote 3 days ago and have no idea what it does! If we're doing something weird like this, it's probably the best idea to make this disgusting hack as clear as possible to the reader. =)

    mhoward - at - hattmoward.org

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2013-05-18 22:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (396 votes), past polls