Avoiding main call to get hidden behind subroutine declarations.
This commit is contained in:
parent
87ece64a8c
commit
ff35e22e2c
@ -12,6 +12,8 @@ my @numbers_one_to_nineteen = (@numbers_one_to_nine, qw/ten eleven twelve thirte
|
||||
# This is contains an undef in the decenes index just to hopefully catch some warning if gets wrongfully used.)
|
||||
my @decenes = (undef, qw/twenty thirty forty fifty sixty seventy eighty ninety/);
|
||||
|
||||
main()
|
||||
|
||||
sub main {
|
||||
my $start_of_range = $ARGV[0];
|
||||
my $end_of_range = $ARGV[1];
|
||||
@ -117,5 +119,3 @@ sub append_millions_to_return($number_ref, $return_ref) {
|
||||
${$return_ref} .= $numbers_one_to_nine[$millions_unit-1] . ' ' . 'million';
|
||||
${$number_ref} = $number % 1_000_000;
|
||||
}
|
||||
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user