in reply to Finally linking issues using perl

Who gave you that suggestion and where do you have problems applying that suggestion?

Replies are listed 'Best First'.
Re^2: Finally linking issues using perl
by gpssana (Initiate) on Apr 17, 2017 at 06:47 UTC
    i passed my sub routine before html conversion and call it inside if condition inside the html conversion part
Re^2: Finally linking issues using perl
by gpssana (Initiate) on Apr 17, 2017 at 06:48 UTC
    Error: Unexpected directory configuration. Expected single rev* +folder, found 0 folder(s) at ./generate_dcms_html.pl line 404,

      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)"; }
Re^2: Finally linking issues using perl
by gpssana (Initiate) on Apr 17, 2017 at 08:28 UTC
    Actually i had tried that suggestion part to link some files.Instead i had also tried another sub routine part that is DelTaskFiles subroutine to remove all task.* files from the destination folder.
    But this subroutine fails to unlink all task.* files from its folders AND SUB FOLDERS
    This sub routine should be done before renaming the directories(i.e before rename_dirs subroutine).I had tried to remove all files which starts with task from its folders and sub folders at destination directory .
    Here my code is not unlinking the task.* from the folders and subfolders
    Help me to fix it.If this subroutine is fixed no need to use my suggestion part

      Note that in programming, there is a huge difference between the word link, and the word unlink.

      The word link is commonly used for the linker program.

      The word unlink is commonly used for the system call named unlink, which also exists in Perl as unlink.

      You seem to want to use unlink, but you say link. This is highly confusing.

      You still have not answered my original question, as to who gave you that suggestion and why they gave the suggestion to you.

      If you are trying to get solutions for suggestions and help you got from another place, please stop doing this. This website is for learning and using Perl and not for doing your school and work assignments.

      As you have repeatedly ignored attempts to help you find learning resources, I can only think that you are acting in bad faith.

        That suggestion is given by mentor.To do like that.Instead if i remove task.config files from my folder and sub folder means before the sub routine rename_dirs.EVery thing will work fine.Thats why i go for sub routine DelTaskFiles but there am unable to remove the task.config files from the folders and sub folders in its destination location.
        then how can i remove the files from the folders ans sub folders without unlink