Two days ago I read this message, and I have a similar problem, but
different.
How can I delete files by date. I need delete those files that was built 3
days ago.
Thx
Raul Gomez
----- Original Message -----
From: "Arnold, Craig" <[EMAIL PROTECTED]>
To: "'Roland Butler'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 5:42 PM
Subject: RE: read all the file names in a directory
> This should do what you're looking for:
>
> @deleted_files = grep { unlink if ! /\.csv$/ } <$path/*> ;
> @remaining_files = <$path/*> ;
>
> hth,
>
> Craig Arnold
>
> -----Original Message-----
> From: Roland Butler [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 01, 2002 7:18 AM
> To: [EMAIL PROTECTED]
> Subject: read all the file names in a directory
>
>
> How do I read all the file names in a directory into an array. Then I need
> to delete any that don't end .csv ?
>
> Any clues?
>
>
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs