Yes - see local, resp. the documentation referenced by it, Private Variables via my() in perlsub.
In reply to Re^3: (nearly) readonly globals by Corion in thread (nearly) readonly globals by haoess