Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open(INPUTFILE, "$database") or die "cannot open file: $!"; while (<INPUTFILE> ) { my $path_check=$_; #It should have all the entry from the db text fil +e chomp($path_check); # $input{'nfirst'}) is one of the parameters from the form so it the +value of $input{'slast'} if( $path_check eq $input{'nfirst'}) || ($path_check eq $input{'slas +t'}) ){ print "<b>Dont Print entry to db text file and exit the loop here< +/b>"; }else{ print "Print New Value(s) to db text file here and exit the loop</ +b><br>";} } close(INPUTFILE); _db sample D:/myfiles/Test/ E:/pics/cgi-bin/new/ C:/temp/ D:/new/files/ F:/new/more/ C:/test/cgi-bin/ac/^ok C:/new/files/ # This line shouldn't be allowed here, it is duplicate +d.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Entry Integrity
by McDarren (Abbot) on Jun 02, 2006 at 14:36 UTC | |
|
Re: Entry Integrity
by CountZero (Bishop) on Jun 02, 2006 at 15:23 UTC | |
|
Re: Entry Integrity
by jesuashok (Curate) on Jun 02, 2006 at 14:13 UTC | |
| |
|
Re: Entry Integrity
by girarde (Hermit) on Jun 03, 2006 at 19:58 UTC |