in reply to Why tilde symbol now works in perl file testing

As you have shown, the tilde does not work in perl as it does in the shell. If you want tilde behavior, it looks like File::Glob might work: GLOB_TILDE.