http://www.perlmonks.org?node_id=845445


in reply to Searching for a specific pattern.

If you're looking for EXACTLY "LX", then just use 'eq':
if( $type eq 'LX' ) {