#!/usr/bin/perl -w use strict; # local %hash; # gives error my %hash; # no error { local %hash; # no error, if %hash previously declared with my # local %hash; # error if %hash previously undeclared }