open (DIRECTIVE_FILE, "<", $directive_file)
or ftp_abort("FATAL: open($directive_file) failed: $!");
my $cnt = 0; # Keep track of the order of directives...
- while (<DIRECTIVE_FILE>) {
- my $line = $_;
- $directive_file_contents .= $line;
- push(@lines,$line);
- }
+ $directive_file_contents = join('', (@lines = <DIRECTIVE_FILE>));
close (DIRECTIVE_FILE) or ftp_warn("close($directive_file) failed: $!");
# If we don't know whose project this file belongs to, because the