@files = <*>; foreach $file (@files) { print $file . "\n"; } #### ## glob on all files in home directory use File::Glob ':globally'; my @sources = <~gnat/*>;