in reply to Re^2: exists *{$glob} ? (+)
in thread exists *{$glob} ? (+)

Replacing the $main::{foo} line with sub foo (I am a string); gives a more realistic example.