in reply to Reason for this discrepancy with scalar?
In Perl, it doesn't matter.
This has probably been done before.
Cheers Rolf (addicted to the Perl Programming Language :) see Wikisyntax for the Monastery