in reply to Re^3: question regarding File::Copy, and hashes that contain file paths in thread question regarding File::Copy, and hashes that contain file paths
How would I check to see if the file exists with this? So we have @f defined as the list of company numbers (C## - which represents company ID ) and for each of those, we're renaming the directory and moving it, but it breaks when it hits the key that does not exist in the folder (company 6 is not inside my zip, but it is a possible company that CAN be in the zip) so I'm looking for a quick way to check if the actual file, that corresponds with the key in our @f, even exists because if it doesn't, i need to skip it.
I think this will involve next, or exists, or maybe both.
Any insight?
|