in reply to Re^2: Is this a bug in Perl scope?
in thread Is this a bug in Perl scope?

By the way (though not a part of your stated problem), tell is a native function name... and thus a poor choice for the name of a sub.

perdoc -f tell will give you the details; in short, tell can help you find your location in a filehandle.