The whole point of this is the make $input 11 characters long so it can be compared with another variable read from a file. What I would like to know is is there a better way to do this?use strict; use warnings; my $input; my $length; print "Enter ID Number: "; $input = <STDIN>; chomp($input); do { $input = "0" . $input; $length = length($input); } until $length eq "11";
edited: Tue Aug 13 15:05:35 2002 by jeffa - added code tags, removed unnecessary br tags
In reply to Is There A Better Way? by The_Shadow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |