diff options
Diffstat (limited to 'bin/raps2')
-rwxr-xr-x | bin/raps2 | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -141,8 +141,8 @@ sub cmd_info { exit 2; } - my %key = $raps2->file_to_hash($pwfile); - $raps2->ui->output( [ 'URL', $key{url} ], [ 'Login', $key{login} ], ); + my $key = $raps2->file_to_hash($pwfile); + $raps2->ui->output( [ 'URL', $key->{url} ], [ 'Login', $key->{login} ], ); return; } @@ -151,11 +151,11 @@ sub cmd_list { my @files = read_dir( data_home('raps2') ); for my $file ( sort @files ) { - my %key = $raps2->file_to_hash( data_files("raps2/${file}") ); + my $key = $raps2->file_to_hash( data_files("raps2/${file}") ); $raps2->ui->list( [ 'Account', $file ], - [ 'Login', $key{login} ], - [ 'URL', $key{url} ], + [ 'Login', $key->{login} ], + [ 'URL', $key->{url} ], ); } |