add proper error handling for all final exec calls
[hband-tools.git] / user-tools / base58
blobc14b57c220d0ada4f80fd3ef3cfa325eb01034ab
1 #!/usr/bin/env perl
3 use Encode::Base58;
5 if ($ARGV[0] eq '-d')
7 $fnc = \&decode_base58;
9 else
11 $fnc = \&encode_base58;
14 $\ = "\n";
16 while(<STDIN>)
18 chomp;
19 print $fnc->($_);
23 __END__
25 =pod
27 =head1 NAME
29 base58 - Encode to (decode from) Base58
31 =cut