[Bps-public-commit] r10115 - bpsbuilder/BPB/lib/BPB

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Dec 25 04:42:30 EST 2007


Author: sunnavy
Date: Tue Dec 25 04:42:29 2007
New Revision: 10115

Modified:
   bpsbuilder/BPB/lib/BPB/Config.pm

Log:
import Load and Dump subs in Config

Modified: bpsbuilder/BPB/lib/BPB/Config.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Config.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Config.pm	Tue Dec 25 04:42:29 2007
@@ -12,10 +12,14 @@
     eval { require YAML::Syck; };
     if ($@) {
         require YAML;
+        *Load = *YAML::Load;
+        *Dump = *YAML::Dump;
         *LoadFile = *YAML::LoadFile;
         *DumpFile = *YAML::DumpFile;
     }
     else {
+        *Load = *YAML::Syck::Load;
+        *Dump = *YAML::Syck::Dump;
         *LoadFile = *YAML::Syck::LoadFile;
         *DumpFile = *YAML::Syck::DumpFile;
     }



More information about the Bps-public-commit mailing list