You don't want to use select, at least not for this. Here it is setting the default file handle for print statements and has global effect. It will be clearer and less error prone to write print OUT $line;
I'd forget about using temporary files and do something like
foreach my $line ( split /\n/, $q ) { print "$line\n" if $line =~ /^Last 24 hours/; }
In reply to Re: Basic search question
by hipowls
in thread Basic search question
by colonelcrayon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |