I want to make sure that file2 includes the mandatory lines
defined in FILE1.
#!/usr/local/bin/perl -w
#
open (FILE1, "/tftpboot/houseboat") or die;
open (file2, "/tftpboot/carboat") or die;
@xray=<file2>;
for $line (<FILE1>) {
#check to see if "$line" is resident in @xray. If so, do #nothing, else print "$line isnt in FILE1"
#ng print grep /"$line"/, @xray;
#ng print grep /'$line'/, @xray;
print grep /$line/, @xray;
}
close FILE1;
close FILE2;
.
.
.
.
snmp-server enable traps frame-relay subif
snmp-server host 16.10.10.7 XXX frame-relay snmp
snmp-server host 16.10.68.7 XXX frame-relay snmp
tacacs-server host 16.10.8.8
tacacs-server host 16.10.1.8
tacacs-server timeout 20
control-plane
banner exec
Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE *****************************************************************
/ at ./ssa line 9, <FILE1> line 144.
Soon as it hits the part of the banner that includes a line of nuttin but asterisks, it fails.
My question is, how do I force perl to take those asterisks literally. Or maybe theres a better way ??
Tks
Chris