This may be a very basic question.... but then again I am very much a beginner coding in Perl, so I will ask it anyway:
I am trying to copy files from one directory to another but there are likely to be folders within this directory and I don't want them. Is there a simple way to copy only files from a given directory to another? I figured that I could check for any kind of extention (.whatever) but I was wondering if there is some sort of built in function that would copy just files and leave folders alone???
Any thoughts to help a newbie? Thanks.