On Wed, Jul 04, 2001 at 11:48:51AM -0500, SAWMaster wrote:
> I'm working on a fairly lengthy ( for a newbie like me) program that
> has two modes.  The user can type "mine blah" and my program will find
> all "blah" or he/she can type "mine !" to enter interactive mode.  The
> problem is that when I get to this snippet:
> 
> sub getinteractivesearch
> {
>          #print "We're interactive!\n\n";
>          opendir(logdirectory, '.') or die "Can't open directory.";
>          print "Enter string to search for: ";
>          $searchstring = <>;

           $searchstring = <STDIN>;

>          chomp $searchstring;
>          print $searchstring;

I don't think you'll need the print.

>          &searchfiles; 
> }

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

Reply via email to