chinaxing has asked for the wisdom of the Perl Monks concerning the following question:
I use code bellow to test , but it not works:
but replace the tilde symbol with $ENV{HOME} , it works and printout "OK":perl -e '-e "~/.ssh/known_hosts" and print "OK" '
so, does the tilde symbol (~) not works in perl ? and what situation it works ? very thanks your wisdom :)perl -e '-e "$ENV{HOME}/.ssh/known_hosts" and print "OK"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why tilde symbol not works in perl file testing
by toolic (Bishop) on Aug 23, 2013 at 01:50 UTC | |
|
Re: Why tilde symbol now works in perl file testing
by Athanasius (Archbishop) on Aug 23, 2013 at 02:13 UTC | |
|
Re: Why tilde symbol now works in perl file testing
by MidLifeXis (Monsignor) on Aug 23, 2013 at 12:56 UTC |