A possible solution for the sign.pl
program is as follows:
#!/usr/bin/perl # sign.pl - solution for exercise use warnings; use strict; my $number; $number = <>; if ($number < 0) { } elsif ($number > 0) # use "elsif" here { } else # not positive or negative { } # note that a non-numeric entry will be interepreted as zero