Re: [Module::Build] broken META.yml file
Status: Beta
Brought to you by:
kwilliams
From: Eric W. <scr...@gm...> - 2006-05-16 18:48:16
|
# from Stephen Adkins # on Tuesday 16 May 2006 05:55 am: >1. The Gantry distribution does "author" wrong >I don't know if somewhere else in Module::Build needs to do something >different in scanning Gantry.pm (to get the desired arrayref), but >Module::Build::YAML is behaving correctly (and creating the same >result as YAML.pm). =3Dhead1 AUTHOR =46oo <fo...@ba...> Bar <ba...@ba...> =3Dcut =2E..is two paragraphs (renders on separate lines in perldoc) =3Dhead1 AUTHOR =46oo <fo...@ba...> Bar <ba...@ba...> =3Dcut =2E..is one paragraph =3Dhead1 AUTHOR Foo <fo...@ba...> Bar <ba...@ba...> =3Dcut =2E..is one literal paragraph of two lines =3Dhead1 AUTHOR Foo <foo at bar dot com> =3Dcut =2E.. is ignored without my patch, which was ignored. But it looks like the behavior WRT lines/paragraphs/literals may depend=20 on whether Pod::Parser is installed as textblock() is fed a paragraph=20 while the M::B::PodParser::_myparse_from_filehandle() is going=20 line-by-line. =46rom the looks of things, the first three cases should turn into=20 something like this (where $f =3D "Foo ..." and $b =3D "Bar ...".) 1. M::B::PP [$f, $b] P::P [$f, $b] 2. M::B::PP [$f, $b] P::P ["$f $b"] 3. M::B::PP [" $f", " $b"] P::P [" $f\n $b"] The automated test is not trivial, but is still left as an exercise for=20 the reader. =2D-Eric =2D-=20 Minus 1 million points for not setting your clock forward and trying the code. =2D-Michael Schwern =2D-------------------------------------------------- http://scratchcomputing.com =2D-------------------------------------------------- |