Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Finally linking issues using perl

by gpssana (Initiate)
on Apr 17, 2017 at 06:48 UTC ( [id://1188091]=note: print w/replies, xml ) Need Help??


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

Error: Unexpected directory configuration. Expected single rev* +folder, found 0 folder(s) at ./generate_dcms_html.pl line 404,
  • Comment on Re^2: Finally linking issues using perl

Replies are listed 'Best First'.
Re^3: Finally linking issues using perl
by Corion (Patriarch) on Apr 17, 2017 at 07:03 UTC

    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?

      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.
      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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188091]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found