If $var1 has the value 0, it will be set to '', which might not be what you want.
In reply to Re^2: no uninitialized warnings by busunsl in thread no uninitialized warnings by si_lence