#!/usr/bin/env perl
-use 5.010;
use strict;
use warnings FATAL => 'all';
use autodie;
my %bump_part = (major => 0, minor => 1, bugfix => 2);
-my $bump_this =
- $bump_part{$ARGV[0]||'bugfix'}
- // die "no idea which part to bump - $ARGV[0] means nothing to me";
+my $bump_this = $bump_part{$ARGV[0]||'bugfix'};
+
+die "no idea which part to bump - $ARGV[0] means nothing to me"
+ unless defined($bump_this);
my @new_parts = @parts;
warn "Bumping $OLD_DECIMAL -> $NEW_DECIMAL\n";
-my $PM_FILE = 'lib/Module/Metadata.pm';
+my $PM_FILE = 'lib/Moo.pm';
my $file = do { local (@ARGV, $/) = ($PM_FILE); <> };