in reply to file data vs data in script

If you want to have similar results betweend data in a file and data in you script, put your data after a __DATA__ token at the end of the script and read them through a <DATA> filehandle.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law