[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] TMTOWTDI #2



Vicki Brown wrote:
> 
> # Problem - we want code to validate input.
> # In this particular case, the possible input values are
> #     blastx, blastn, blastp, tblastx, tblastn
> # so it looks like a job for a regexp
> 

while (<>){
	/t?blast[xn]/ && next;
	/blastp/ && next;
	die "$_ : not valid";
}

I think that's closer to what the holy camel tome wants of us.


==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org