Permalink
Browse files

allow empty code (does nothing), instead of taking the next arg as sc…

…riptlet
  • Loading branch information...
1 parent bee39ad commit 02b83e192cfa8010e1535372d4549b26fae44a10 Steven Haryanto (on Asus EEEPC) committed Sep 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/App/perlmv.pm
View
@@ -127,7 +127,7 @@ sub run {
exit 0;
}
- unless ($self->{'code'}) {
+ unless (defined $self->{'code'}) {
die 'FATAL: Must specify code (-e) or scriptlet name (first argument)'
unless $self->{'items'};
$self->{'code'} =

0 comments on commit 02b83e1

Please sign in to comment.