>>>>> "ta" == timothy adigun <2teezp...@gmail.com> writes:
ta> Hi Rob, ta> my @arr=qw(fry ring apple law); ta> print "Enter the string you are searching for:"; ta> chomp(my $search=<STDIN>); # you may have to check, if input is not string >>> I don't understand your comment. The input from stdin has to be a >>> string - it cannot be anything else. ta> the input from stdin could be anything, but I was only making it ta> clear for the user to know that since what we are searching for is ta> a string, he can take the code further, to ensure that a string is ta> inputted in the search scalar element. it can only be a string as it comes from stdin. what else do you think it could be? uri -- Uri Guttman -- uri AT perlhunter DOT com --- http://www.perlhunter.com -- ------------ Perl Developer Recruiting and Placement Services ------------- ----- Perl Code Review, Architecture, Development, Training, Support ------- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/