in reply to directory list

Here are two short options:

@images = glob('*.{tif,jpg,jpeg}'); or @images = <*.{tif,jpg,jpeg}>;