develooper Front page | perl.makemaker | Postings from May 2002

Re: Module::Build design plans

Thread Previous
From:
Edward Avis
Date:
May 22, 2002 08:56
Subject:
Re: Module::Build design plans
Message ID:
Pine.LNX.4.42.0205221646180.32733-100000@active01.doc.ic.ac.uk
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 22 May 2002, Dave Rolsky wrote:

>Anyway, I think it's mostly moot.  YAML is darn easy to use:
>
> print Store ($data_struct);
>
> my $data = Load($text);
>
>and that, along with human-readability and minimal requirements probably
>makes it a done deal.

Data::Dumper is just as easy but as you point out it requires an eval()
which allows all sorts of unpleasant surprises.  It would be nice to
have a 'safe' parser for Data::Dumper, because then you could use it to
load and save data in the ideal format (in other words, that which is
most familiar to Perl users).

Unfortunately no such parser exists, and I haven't used
Parse::RecDescent before so I am not able to hack one together in
half an hour and attach it to this message :-(.  So it looks like YAML
may be the only option, at present.

- -- 
Ed Avis <epa98@doc.ic.ac.uk>
Finger for PGP key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE867+zIMp73jhGogoRAjtsAJ4rx25BQwxwHPpbXuSocEmjntf7jACfa2xN
LQTabyfGZv2Ca/O/C1J31OI=
=wDnW
-----END PGP SIGNATURE-----


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About