gzayzay has asked for the wisdom of the Perl Monks concerning the following question:
I am wondering if anyone could kindly help me with certain info. I have programmed in C++ a little and the getline() function allow users to enter multiple inputs. It is in this view I am wondering whether Perl has similar function that allows users to enter multiple inputs. What i am trying to do is, instead of writing:
print "Enter word1: >> "; chomp (my $word1 = <SDTIN>); print "\nEnter word2: >> "; chomp (my $word2 = <SDTIN>);
I will like to find a means in which the users can enter multiple words at once i.e john, cat, mary, paul. I will like to get the entire entry and do a search word by word. Thus, if any monk know an in-built function that can do that, plese help me out.
Thanks,
gzayzay.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting Multiple inputs
by McDarren (Abbot) on Apr 05, 2006 at 17:11 UTC | |
by ikegami (Patriarch) on Apr 05, 2006 at 18:52 UTC | |
by sweetblood (Prior) on Apr 05, 2006 at 18:43 UTC | |
by gzayzay (Sexton) on Apr 05, 2006 at 17:21 UTC | |
|
Re: Getting Multiple inputs
by eric256 (Parson) on Apr 05, 2006 at 17:55 UTC | |
by Anonymous Monk on Apr 05, 2006 at 18:59 UTC | |
|
Re: Getting Multiple inputs
by johngg (Canon) on Apr 05, 2006 at 20:06 UTC |