#!/usr/bin/perl -w use strict; my $errmsg = "Too Few Characters in Company Login Name"; sub err{ print $errmsg; } my $compname = "Sears"; &err if (length($compname) < 6); # prints $errmsg $compname = "Sears Roebuck"; &err if (length($compname) < 6); # doesn't.
In reply to Re: Simple length question
by mrbbking
in thread Simple length question
by Jeffro Tull
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |