Skip to content

Commit

Permalink
remove %prompt_options var as it wont be needed
Browse files Browse the repository at this point in the history
  • Loading branch information
hidroto committed Aug 4, 2015
1 parent 810c980 commit a81f597
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions bookmarkorgan.pl
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,12 @@ sub main {
load_plugins();
my $bookmark_db = load_database();

my $QUIT = qr{\A q(?:uit)? \z}i;
my %prompt_options = (
-prompt => '>',
-until => $QUIT,
);
my $QUIT = qr{\A q(?:uit)? \z}i;
my %command_hash = (
add => \&add,
add => \&add,
);
MAIN_LOOP:
while ( my $input = prompt(%prompt_options) ) {
while ( my $input = prompt( '>', { -until => $QUIT } ) ) {
my ( $command, @args ) = split m{[ ]+}, $input;
if ( defined $command ) {
if ( exists $command_hash{$command} ) {
Expand Down

0 comments on commit a81f597

Please sign in to comment.