I know there's a way to do this, but I'm a bit lost on it at the moment.
So given an input of date (in MMDDYY format, example $date = 101110), I want to read all files from a directory (call it home/parent/) and write them all into a filehandle, so I can proceed to read them with my script.
Example, if the unix command ls home/parent/*101110* outputs three files, I want to be able to read all three of these files into the filehandle. How would I go about:
1) doing this?
2) using a user-inputted variable (don't worry about validating the format, I already programmed it to die if entered incorrectly) to find particular files to read?
Thanks again.
So given an input of date (in MMDDYY format, example $date = 101110), I want to read all files from a directory (call it home/parent/) and write them all into a filehandle, so I can proceed to read them with my script.
Example, if the unix command ls home/parent/*101110* outputs three files, I want to be able to read all three of these files into the filehandle. How would I go about:
1) doing this?
2) using a user-inputted variable (don't worry about validating the format, I already programmed it to die if entered incorrectly) to find particular files to read?
Thanks again.