chomp tied variables
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 9 Sep 2009 10:13:08 +0000 (10:13 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 9 Sep 2009 10:13:08 +0000 (10:13 +0000)
lib/PXElator/server.pm

index 089851a..84eab14 100644 (file)
@@ -89,7 +89,9 @@ sub STORE {
 sub FETCH {
        warn dump @_;
        my $self = shift;
-       read_file $$self->{path};
+       my $v = read_file $$self->{path};
+       chomp($v);
+       $v;
 }
 
 3;