in reply to Re: How to insert || and && in an if loop
in thread How to insert || and && in an if loop

die "..." if $string =~ /:|.{17}/;

This accepts all strings less than 17 characters. perl514 wants only strings exactly 16 characters.

>perl -wMstrict -le "my $string = 'foo'; ;; die '...' if $string =~ /:|.{17}/; ;; print qq{processing '$string'}; " processing 'foo'