summaryrefslogtreecommitdiffstats
path: root/client.pl
diff options
context:
space:
mode:
Diffstat (limited to 'client.pl')
-rwxr-xr-xclient.pl3
1 files changed, 1 insertions, 2 deletions
diff --git a/client.pl b/client.pl
index 729663f..cbf9b58 100755
--- a/client.pl
+++ b/client.pl
@@ -94,8 +94,7 @@ my $save_session = sub
my $get_session = sub
{
open(my $fh, '<', $session_file) or _die "Cannot open $session_file for reading: $!\nPerhaps try running --init\n";
- my $session = do { local $/; <$fh> };
- chomp $session;
+ chomp(my $session = <$fh>);
close($fh);
return $session;