in reply to Re^3: Finally linking issues using perl
in thread Finally linking issues using perl

This part of code :line 404
if ( $num_files != 1) { die "Unexpected directory configuration. Expected single .html + file, " . "found $num_files .html files(s)"; }
  • Comment on Re^4: Finally linking issues using perl

Replies are listed 'Best First'.
Re^5: Finally linking issues using perl
by poj (Abbot) on Apr 17, 2017 at 08:17 UTC

    Add $dir into your error messages

     die "Unexpected directory configuration. Expected single rev* folder in '$dir', found $num_dirs folder(s)";
    .
    .
     die "Unexpected directory configuration. Expected single .html file in '$dir', found $num_files .html files(s)";
    
    poj
      here it shows the folder path
      Unexpected directory configuration. Expected single rev* folder in '/_projects/Muska', found 0 folder(s) at ./generate_dcms_html.pl line 404, <$fh> line 1.

        Ok, you found the problem, there are no rev* folders in /_project/Muska

        which is correct as they appear to be in /_project/Muska/Muska_Digital/Digital_Verification

Re^5: Finally linking issues using perl
by Corion (Patriarch) on Apr 17, 2017 at 08:08 UTC

    That line of code will never produce the error message you posted above.