open(FILEHANDLE, "/data/A/file"); #### ./master.pl A # looks for file under /data/A ./master.pl B # looks for file under /data/B