From: Dave Rolsky Date: Sun, 21 Jun 2009 15:42:37 +0000 (-0500) Subject: Tone down the judgement, add another reason to use MX::Singleton X-Git-Tag: 0.82~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e24c59ad9fe293075bc8c4d017f6ac2cb94f4c37;p=gitmo%2FMoose.git Tone down the judgement, add another reason to use MX::Singleton --- diff --git a/lib/Moose/Manual/MooseX.pod b/lib/Moose/Manual/MooseX.pod index f4bfa72..1991a21 100644 --- a/lib/Moose/Manual/MooseX.pod +++ b/lib/Moose/Manual/MooseX.pod @@ -151,11 +151,10 @@ From the command line, someone can execute the script: To be honest, using a singleton is just a way to have a magic global variable in languages that don't actually have global variables. -In perl, you should almost certaintly just use a global. - -However, if your colleagues are too used to java to understand that a -singleton is a slow, stupid way of hacking around its lack of globals, -L lets you have a Moose class that's a singleton: +In perl, you can just as easily use a global. However, if your +colleagues are Java-infected, they might prefer a singleton. Also, if +you have an existing class that I a singleton but should be, +using L is the easiest way to convert it. package Config;