Mercurial > pub > Impl
view _test/temp.pl @ 419:bbc4739c4d48 ref20150831
working on IMPL::Config::Container
author | cin |
---|---|
date | Sun, 29 Jan 2017 10:30:20 +0300 |
parents | 3f38dabaf5cc |
children | b0481c071bea |
line wrap: on
line source
#!/usr/bin/perl use strict; use Carp; use Time::HiRes qw(gettimeofday tv_interval); use Scalar::Util qw(blessed refaddr); use YAML::XS qw(Dump Load); use IMPL::require { Container => 'IMPL::Config::Container', Service => 'IMPL::Config::ServiceDescriptor', Reference => 'IMPL::Config::ReferenceDescriptor', Value => 'IMPL::Config::ValueDescriptor' }; my $data; { open my $h, "<", "sample.yaml" or die; print "H: ", *{$h}{IO}, "\n"; binmode $h; local $/; $data = <$h>; } my $t = [gettimeofday]; print Dump Load($data); print "Activated: ",tv_interval($t,[gettimeofday]),"\n"; 1;