From: Tom Insam Date: 11:50 on 10 Mar 2004 Subject: XML::Simple if ($XML::Simple::VERSION eq '2.02') { return XMLin( $xml, forcearray => ['albums', 'pictures'] ); } else { return XMLin( $xml, ForceArray => ['albums', 'pictures'] ); } So sure, it's probably not _just_ 2.02, but it's what I'm developing against, opposed to what I will probably have to release against, currently 2.09. but. hate. .tom
From: Jonathan Stowe Date: 14:53 on 10 Mar 2004 Subject: Re: XML::Simple On Wed, 2004-03-10 at 11:50, Tom Insam wrote: > if ($XML::Simple::VERSION eq '2.02') { > return XMLin( $xml, forcearray => ['albums', 'pictures'] ); > } else { > return XMLin( $xml, ForceArray => ['albums', 'pictures'] ); > } > > So sure, it's probably not _just_ 2.02, but it's what I'm developing > against, opposed to what I will probably have to release against, > currently 2.09. I hate to rain on your hate but: Note: option names are no longer case sensitive so you can use the mixed case versions shown here; all lower case as required by versions 2.03 and earlier; or you can add underscores between the words (eg: key_attr). This from the 2.09 manpage. But this does beg the question why you are developing with a different version of a library than the one you will use in production - surely this completely negates the results of any testing. /J\ > > but. hate. > > .tom >
From: Tom Insam Date: 16:09 on 10 Mar 2004 Subject: Re: XML::Simple On Wed, 2004-03-10 at 14:53, Jonathan Stowe wrote: > I hate to rain on your hate but: > > Note: option names are no longer case sensitive so you can use the > mixed case versions shown here; all lower case as required by versions > 2.03 and earlier; or you can add underscores between the words (eg: > key_attr). > > This from the 2.09 manpage. Curse this 'reading the documentation' of which you speak. Damn. Well, the code gets nicer, at least. > But this does beg the question why you are developing with a different > version of a library than the one you will use in production - surely > this completely negates the results of any testing. Because the development environment is used by lots of projects, and upgrading XML::Simple might break things, but the release environment is CPAN, and so I can assume that things are more recent. .tom
From: David Champion Date: 17:43 on 10 Mar 2004 Subject: Re: XML::Simple * On 2004.03.10, in <1078934963.2217.1.camel@bookend>, * "Tom Insam" <tom@xxxxxxxx.xxx> wrote: > > > But this does beg the question why you are developing with a different > > version of a library than the one you will use in production - surely > > this completely negates the results of any testing. > > Because the development environment is used by lots of projects, and > upgrading XML::Simple might break things, but the release environment is > CPAN, and so I can assume that things are more recent. And, moreover, code developed against an older library release stands a better chance of being compatible with multiple releases. If you're only going to test and support one library version, sure: use the latest. But if you want to be robust, and not look like open source, then develop against an old version and test/extend with a new one. Developing with a new version and trying to ensure operation with older releases is one of many short routes to the Betty Ford Clinic.
Generated at 17:45 on 09 Apr 2005 by mariachi