use warnings; use strict; chomp ( $_ = <> ); print "good input\n" if /^\d{5}$/; [download]
In reply to Re: compare stdin for a number by kesterkester in thread compare stdin for a number by anoxer