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

Perl tells you the problematic line number in the error message.

You posted a lot of code, but it is not clear to me, which line of the code corresponds to the line number 404 from the error message. Maybe the code around that line number is more relevant?

  • Comment on Re^3: Finally linking issues using perl

Replies are listed 'Best First'.
Re^4: Finally linking issues using perl
by gpssana (Initiate) on Apr 17, 2017 at 07:23 UTC
    the main thing is i want to delete task.* files from directories and sub directories in which i had added my code in DelTaskFiles sub routine .But this sub routine should be performed after the files copied from source to destination.
Re^4: Finally linking issues using perl
by gpssana (Initiate) on Apr 17, 2017 at 07:12 UTC
    This part of code :line 404
    if ( $num_files != 1) { die "Unexpected directory configuration. Expected single .html + file, " . "found $num_files .html files(s)"; }

      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.

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