If your needs are simple, e.g. config files, then YAML::Tiny may be sufficient. Here's how they compare:
YAML -- the "official" standard, implemented in pure Perl, but very "heavy" due to the flexibility it offers
YAML::Syck -- XS implementation using the libsyck library; fastest
YAML::Tiny -- a pretty full subset of YAML in less than 100 lines of pure Perl
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.