[dancer-users] Dancer->VERSION comparison issue

Celogeek me at celogeek.com
Fri Dec 28 15:08:28 GMT 2012


Hi, I'm still working on upgrading Dancer::Plugin::Redis. 

And the think I have seen and missing in all module I have look and say compatible with dancer2 is that the 'register' pass 'DSL' as a first args ! 

so I need to be backward compatible to do that : 

register redis => sub { 
shift if dancer_version >= 1.99 
... 
} 

But it failed because 1.9999_02 is not numeric ! 

so I use the "ge" but it is not very great. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20121228/e5e35654/attachment.htm>


More information about the dancer-users mailing list