@files = glob( $path . "/*.xml ); print join ( "\n", @files ); This returns: C:/Documents and Settings/UserX/Desktop/WORK/data/var