in reply to Perl scoping not logical...?

You may find it profitable (or, at least, interesting) to read about Perl 6 and the extent to which it is (and isn't) going in the direction you wish.

For just one recent example here, see Perl 6 shocking revelations #1 (by John M. Dlugosz) and the follow-on discussion. See also such resources as http://www.perlfoundation.org/perl6/index.cgi, current documentation, mail_lists archives or The Synopsis documents.