in reply to Benchmarking String::Approx
While Joost is wrong (or I misunderstood him) about not being able it give Benchmark a string. His approach is normally the better one.cmpthese (-5,{ me => "mymatch('AAAAA',2,['AAAAA','ATAAA', 'ATCGA','ATCAA']);", jk => "amatch('AAAAA',['2'],('AAAAA','ATAAA', 'ATCGA','ATCAA'));" });
Update: The problem is that you are evaling the following strings:
mymatch(AAAAA,2,@arr) amatch(AAAAA,['2'],AAAAA ATAAA ATCGA ATCAA)
|
|---|