You just described...
The way I make my scripts.
I declare (nearly) everything that way and it makes it fun to write a HUGE command line as a bunch of VARs.
--
greg@gregfolkert.net
PGP key 1024D/B524687C 2003-08-05
Fingerprint: E1D3 E3D7 5850 957E FED0 2B3A ED66 6971 B524 687C