#!/usr/bin/perl use strict; use warnings; my $vldb = <; chomp @leapStrings; close $leapIn; my @vldbStrings = <$vldbIn>; chomp @vldbStrings; close $vldbIn; for my $leapString (@leapStrings) { print $leapString; $leapString =~ s/^\s+|\s+$//g; my $found; for my $vldbString (@vldbStrings) { $vldbString =~ s/^\s+|\s+$//g; $vldbString =~ s/Notification\s+(\d+)$/N $1/g; $vldbString =~ s/Order/OR/g; if ($leapString =~ m/$vldbString/i) { $found = 1; last; } } if ($found) { print "\t FOUND IN VLDB =====\n"; } else { print "\t NOT FOUND IN VLDB =====\n"; } } #### FOUND IN VLDB ===== Joints and Commitment FOUND IN VLDB ===== NOT FOUND IN VLDB ===== Practical Order FOUND IN VLDB ===== NOT FOUND IN VLDB ===== Commitment of Competent Authority, Cap. 213, N 1 NOT FOUND IN VLDB ===== Commited Places Order, Cap. 213, OR 1 NOT FOUND IN VLDB ===== Prohibited Places Order 1997, S 276/2000 NOT FOUND IN VLDB ===== committed Places Order 2001, S 538/2010 NOT FOUND IN VLDB ===== NOT FOUND IN VLDB ===== Joints and Opticians FOUND IN VLDB ===== NOT FOUND IN VLDB ===== Joints and Opticians (Exemption from Section 25(1)) Order, Map. 213A, OR 1 FOUND IN VLDB ===== Joints and Opticians (Exemption from Section 25(1)) Order 2008, S 91/2008 FOUND IN VLDB ===== Joints and Opticians (Investigation of Complaints) Regulations, Map. 213A, RG 2 FOUND IN VLDB ===== Joints and Opticians (Practice, Conduct, Ethics and Publicity) Regulations, Map. 213A, RG 3 FOUND IN VLDB ===== Joints and Opticians (Registration and Practising Certificates) Regulations, Map. 213A, RG 1 FOUND IN VLDB ===== Joints and Opticians (Registration and Practising Certificates) Regulations 2008, S 90/2008 FOUND IN VLDB ===== Joints and Opticians (Registration and Practising Certificates) Regulations 2008, S 90/2008 FOUND IN VLDB ===== Joints and Opticians (Commencement) Notification 2008, S 89/2008 FOUND IN VLDB ===== Joints and Opticians (Commencement) Notification 2008, S 89/2008 FOUND IN VLDB =====