use strict; use warnings; print "$_\n" for glob '{a,b}cd{f,g,h}'; __END__ acdf acdg acdh bcdf bcdg bcdh