my @thefiles = <$GSR_fh>; ... make_path(map {chomp} <$GSR_fh>);