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

Andy Armstrong andy at hexten.net
Fri Feb 13 13:21:25 GMT 2009


On 13 Feb 2009, at 13:05, Andy Wardley wrote:
> For example:
>
>   use Badger::Constants 'ARRAY HASH';
>
>   if (ref $foo eq ARRAY) {
>       ...
>   }
>   elsif (ref $foo eq HASH) {
>       ...
>   }


I like this a lot.

-- 
Andy Armstrong, Hexten





More information about the london.pm mailing list