Re: [Catalyst] World Country List

2010-08-03 Thread Robyn Jonahs
Thanks. I think I can work with one of those. Probably Locale::Country with all_country_names(); somehow. I will see what I can work out and post the result if is is decent. On Tue, Aug 3, 2010 at 10:14 PM, Ian VanDerPoel < ian.vanderp...@transportregulator.nsw.gov.au> wrote: > Try > http://sea

Re: [Catalyst] World Country List

2010-08-03 Thread Denny
On Tue, 2010-08-03 at 22:02 -0300, Robyn Jonahs wrote: > Hi I am learning to use HTML::FormBuilder. I want to add a select > input that contains all of the world countries. I am new to Cat and > Perl. I searched CPAN but can't seem to come up with a module that > lists all of the countries. Locale

Re: [Catalyst] World Country List

2010-08-03 Thread Ian VanDerPoel
Try http://search.cpan.org/~abigail/Geography-Countries-2009041301/lib/Geography/Countries.pm Ian van der Poel Analyst/Programmer Independent Transport Safety Regulator (02)8263 7187 >>> Robyn Jonahs 04/08/10 11:02 am >>> Hi I am learning to use HTML::FormBuilder. I want to add a select inp

[Catalyst] World Country List

2010-08-03 Thread Robyn Jonahs
Hi I am learning to use HTML::FormBuilder. I want to add a select input that contains all of the world countries. I am new to Cat and Perl. I searched CPAN but can't seem to come up with a module that lists all of the countries. Is there a simple way in Catalyst and HTML::FormBuilder to do this? T

Re: [Catalyst] Cross-link: How do I turn Moose objects into JSON for use in Catalyst?

2010-08-03 Thread Evan Carroll
It also appears as if YAML::Syck does this very well: perl -MJSON::Syck -MURI -E'say JSON::Syck::Dump( bless { foo => URI->new("http://www.evancarrol.com";) } )' -- Evan Carroll - m...@evancarroll.com System Lord of the Internets web: http://www.evancarroll.com ph: 281.901.0011

Re: [Catalyst] Cross-link: How do I turn Moose objects into JSON for use in Catalyst?

2010-08-03 Thread Evan Carroll
On Tue, Aug 3, 2010 at 12:34 PM, Stuart Watt wrote: > You're right - I just checked the sources and there is no valid code for > this case, despite the implication of the documentation. I'd be tempted to > file a bug against JSON::XS, as at least the pod is wrong. I guess it got > too hard, as ble

Re: [Catalyst] Cross-link: How do I turn Moose objects into JSON for use in Catalyst?

2010-08-03 Thread Evan Carroll
> The documentation  isn't clear on how, but this implies some combination of > these flags (probably setting both to true) should do the "encoding the > reference as if it weren't blessed" thing. No, allow_blessed(1) means it will not die, it will instead print out the totally useless string 'nul

Re: [Catalyst] Cross-link: How do I turn Moose objects into JSON for use in Catalyst?

2010-08-03 Thread Alex J. G. BurzyƄski
Hi, On 03/08/10 16:31, Evan Carroll wrote: > I've posted a question and a few possible fixes. Does anyone have > anything to add here? How do you go about dumping Moose to JSON in > Cat? > > http://stackoverflow.com/questions/3391967/how-do-i-turn-moose-objects-into-json-for-use-in-catalyst > >

[Catalyst] Cross-link: How do I turn Moose objects into JSON for use in Catalyst?

2010-08-03 Thread Evan Carroll
I've posted a question and a few possible fixes. Does anyone have anything to add here? How do you go about dumping Moose to JSON in Cat? http://stackoverflow.com/questions/3391967/how-do-i-turn-moose-objects-into-json-for-use-in-catalyst -- Evan Carroll - m...@evancarroll.com System Lord of the