use constant SUBJECT => 'Defining Constants'; # was: !0

Andy Armstrong andy at hexten.net
Fri Feb 13 14:06:54 GMT 2009


On 13 Feb 2009, at 13:49, Paul Makepeace wrote:
>> I like this a lot.
>
> Since you're calling a sub, and the goal is to reduce typing, why  
> not just have,
>
>  if (IS_ARRAY($foo)) {
>     ...
>  }


Yeah, could do - but it's more different from idiomatic Perl.

-- 
Andy Armstrong, Hexten





More information about the london.pm mailing list