in reply to Using the map function

map transforms data, grep selects data. Use grep.

Note: if you use @temp anywhere more than 1 or two lines away (and even then I would do this), rename it to @temperature. @temp means to me, a potential future maintenance programmer, that this is a short lived, non persistent, temporary variable.

--MidLifeXis