I managed to get the folowing to work ok ...
my $req = bool_to_regexp($ARGV[0]);
print "using '$req' ...\n";
open (FILE, "stuff") || die "$!";
while(<FILE>) {
if (eval($req)) {
print $_;
}
}
close FILE;
... so ...
The eval was the right choice, but
eval if ($req) runs the code in
$req only is it works (which it won't be because it is not run ... vicious cycle)
can't sleep clowns will eat me
-- MZSanford