[interchange-docs] Dump complete Vend::Cfg structure
Peter
peter at pajamian.dhs.org
Sat Dec 22 06:57:00 EST 2007
I ran across this page just now in the XML Docs:
http://www.icdevgroup.org/docs/howtos/dump-vend-config.html
The page is instructions about how to write a usertag to dump the
complete Vend::Cfg structure. It is completely unnecessary and overkill
to do it this way for two reasons...
1. There is a sub in Interchange for doing data dumps already, it is
::uneval(), and should be used instead of using Data::Dumper as
suggested by this usertag. It has about 3 or 4 different ways of
creating the dump so it is not necessary to have Data::Dumper in your
Perl build to use it.
2. There is already a tag in Interchange that does this. To dump
Vend::Cfg simply do this on a page:
[uneval ref=`$Config`]
You can also do it in the "test code" section of the admin UI under the
Administration tab, creating a page with this tag on it is not even
necessary at all.
Peter
More information about the docs
mailing list