> my var; # declaring a scalar
> my array[]; # declaring an array
> my hash{}; # declaring a hash
Though the declarations seem fine, I assume that you propose this to be
optional at usage time, since variable interpolations such as
"xxx${var1}xxx${var2}xxx" really need the prefix. One of the great
strengths of perl is in fast and simple string manipulations. Currently,
it's unabiguous as to how here-document simpler strings get interpolated.
Compare that to Java's:
"str" + var + "str"
or python's:
"xxx%sxxx" % var
-Michael