Tilde referring to the home directory is a shell construct, and as such, is expanded by the shell (or other programs that explicitly handle the tilde). See bash in the section Tilde Expansion for how it works in bash.
Each program handles its domain specific language independently of other programs. Even if the way different programs handle things is similar, you need to go to the language specific for that program. Perl has a different way of handling it from the shell.
--MidLifeXis
In reply to Re: Why tilde symbol now works in perl file testing
by MidLifeXis
in thread Why tilde symbol now works in perl file testing
by chinaxing
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |