I know that -d /path/to/dir can be used to test command for checking a directory. Then:
if ( $argv[1] == "-d" )
does not work because of that.
However, I need to be able to pass -d as an argument to my script. How can I disable the special property of -d so I can pass it as an argument?
-ddoesn't work as an argument? The fact thattestor[use it doesn't mean it can't be used by anything else. – cas Oct 24 '15 at 13:16