#Set the default values to be changed by proe/excel/etc $ext=dwg; $ext2=DWG; $truck=$input{"truckno"}; $searchtype=$input{"searchtype"}; $dir=`/depot/systems/scripts/find_dir_all.pl $truck $searchtype`; # use globbing to locate directory based on searchtype and truck number for ($input{"searchtype"} { if (/bid/ | /quot/ | /ezd/) { @dir = bsd_glob("$dir*"); } else { @dir = $dir } }