This is really more a unix question than a perl question, but... rm ./-I will delete the file. So long as the first character is not a dash, then it works fine. Quotes are stripped by the shell, so they don't count as characters.
Update: D'oh! As pepik_knize pointed out below, it's a directory, not a file. rmdir ./-I is what I should have said.
In reply to Re: deleting directory named -I (as Ice).
by jeffenstein
in thread deleting directory named -I (as Ice).
by sshukla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |