I want to get all elements in clearcase, store them in an array, and then remove the symbolic links from that array. Problem is I don't know how to remove all elements in one array that are contained in another array since I'm new to perl.
Bellow is my code so far.
foreach ${dir} (@{code_vob_list})
{
${dir} =~ s/\n//;
open(FIND_FILES, "$cleartool find ${dir} -type f -exec 'echo \$CLEARCASE_PN' |") or die "Can't stat cleartool or execute : $!\n"; #This command gets all files
@{files_found} = <FIND_FILES>;
open(SYMBOLIC_FIND_FILES, "$cleartool find ${dir} -type l -exec 'echo \$CLEARCASE_PN' |") or die "Can't stat cleartool or execute : $!\n"; #This command get all symbolic links
@{symbolic_files_found} = <SYMBOLIC_FIND_FILES>;
#Filter away all strings contained in @{symbolic_files_found} from @{files_found}
foreach my ${file} (@{files_found})
{
#Here I will perform my actions on @{files_found} that not contains any symbolic link paths from @{symbolic_files_found}
}
}
Thanks in advance