develooper Front page | perl.perl5.porters | Postings from August 2012

Re: fixing smartmatch just hard enough (and when, too)

Thread Previous | Thread Next
Dave Mitchell
August 28, 2012 10:49
Re: fixing smartmatch just hard enough (and when, too)
Message ID:
On Tue, Aug 28, 2012 at 11:58:26AM -0400, David Golden wrote:
> On Tue, Aug 28, 2012 at 9:06 AM, Dave Mitchell <> wrote:
> >
> > Depending on how the constant value is is defined, it may be IOK or POK:
> > by uncommenting the print debug, we change FOO from integer to string.
> I was thinking more of the truly constant case, where constants are
> providing more readable test values:
>     use constant OK => 200;

Yeah, but at the time the constant is used, you have no idea of its
history, or whether its "really" constant.

A major Starfleet emergency breaks out near the Enterprise, but
fortunately some other ships in the area are able to deal with it to
everyone's satisfaction.
    -- Things That Never Happen in "Star Trek" #13

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About