in reply to Weird hash access problem
The scope of "$1" with respect to the regular expression is within the if block IIRC. Who knows what "$1" is outside of if block. Btw, you forgot "use warnings;" after "use strict;"
Jason L. Froebe
Blog, Tech Blog