in reply to Use of special character "*" to retrieve the contents

* wouldn't do what you want in single quotes either. glob will give you the list of files that match your pattern: my @files = glob "$var1/$var2/$var3/*.ksh"

Edit: I forgot the call to glob in my example :D, thanks haukex!