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


in reply to Re^2: Problem with Pseudohash
in thread Problem with Pseudohash

OK, you have a string
my $content = "\n" . 'type1="scientific" type2="technical"';
Are you interested in type1 only? Use
my ($type1) = $content =~ /type1="([^"]+)"/;
Are you interested whether scientific is present? Use
my $is_sceintific = $content =~ /type[0-9]*="scientific"/;