From 522fddc75ee774e9afb2b05658876e9f2f5935e0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jul 2009 11:19:57 +0200 Subject: envstore: Use nstore to store the environment --- bin/envstore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/envstore b/bin/envstore index 9dd301e..f0b7b98 100755 --- a/bin/envstore +++ b/bin/envstore @@ -5,7 +5,7 @@ use strict; use warnings; use Pod::Usage; -use Storable; +use Storable 'nstore', 'retrieve'; my $store_file = "/tmp/envstore-$>"; my %store; @@ -49,7 +49,7 @@ sub load_store { sub save_store { umask(0077); - store(\%store, $store_file); + nstore(\%store, $store_file); } sub get_keyvalue { -- cgit v1.2.3