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

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
  • 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 08:34 UTC

    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

        No, you need to use unlink.

        I can only suggest that you talk with your mentor about how to better structure your program and how to make things happen in your program in the order you want it to happen.