problem solved:
@files = grep (/\.xml$/, readdir(DIR)); [download]
Thanks for the help
In reply to Re^6: Perl List files in directory by Anonymous Monk in thread Perl List files in directory by Anonymous Monk