Mercurial > pub > Impl
view _test/temp.pl @ 418:3f38dabaf5cc ref20150831
sync
author | cin |
---|---|
date | Mon, 28 Dec 2015 15:11:35 +0300 |
parents | 3ed0c58e9da3 |
children | bbc4739c4d48 |
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; binmode $h; local $/; $data = <$h>; } my $t = [gettimeofday]; print Dump Load($data); print "Activated: ",tv_interval($t,[gettimeofday]),"\n"; 1;