DEV Community

loading...

Discussion on: Daily Challenge #40 - Counting Sheep

Collapse
choroba profile image
E. Choroba

Perl solution, the integer is specified as an argument to the program:

#!/usr/bin/perl
use warnings;
use strict;
use feature qw{ say };

say map "$_ sheep...", 1 .. shift;