in reply to Re^9: Recomendations For Learning perl?
in thread Recomendations For Learning perl?

I am using Fedora20 Here are the results

Replies are listed 'Best First'.
Re^11: Recomendations For Learning perl?
by 1nickt (Canon) on Dec 08, 2016 at 21:22 UTC
    and the command?
    The way forward always starts with a minimal test.

      perl nameInWords.pl adam

        Hi adamZ88,

        Sorry, there was an error in the version I posted with a missing set of parens in one line. Should be:

        ( my $name = $ARGV[0] ) && length $ARGV[0] > 2 or die "Usage: `$0 <nam +e>` (min. 3 letters)";

        ( Without the parens, $name was assigned the value of $ARGV[0]  && length $ARGV[0] > 2, which is 'true', or, literally, 1 ... which is why you got those weird matches.)


        The way forward always starts with a minimal test.