[Purdue-pm] smart matching in Perl
Rick Westerman
westerman at purdue.edu
Fri Feb 25 12:41:38 PST 2011
----- Original Message -----
> The '~~' is used to do smart matching in Perl. I like smart match.
>
> I'm working on a program that needs to run on Perl 5.10 and 5.12
> (don't
> ask). I'd love to use Perl's smart match to do it but that won't work
> in 5.10. Below is a program to demonstrate two ways of getting an
> answer. I don't claim either of these are optimal. -mark
use SmartMatch::Sugar;
No?
--
Rick Westerman
westerman at purdue.edu
Bioinformatics specialist at the Genomics Facility.
Phone: (765) 494-0505 FAX: (765) 496-7255
Department of Horticulture and Landscape Architecture
625 Agriculture Mall Drive
West Lafayette, IN 47907-2010
Physically located in room S049, WSLR building
More information about the Purdue-pm
mailing list