Hi aish11,
do you have a per-line loop around this like "while(<>)" or one the command line parameter "-n" or "-p" ?
In this case the variable $runDate gets updated in each line. Is it used later ?
If the input is treated as a whole, then $runDate would contain the first date
that appears in the file.