die("Target file must be plain text!") unless -f $O{target};
I thought that -f tests if a file is a plain file. In other words if it's not a directory or some other weird thing that you might encounter in a Linux file system. I was also told that -f tests if a file exists. If it doesn't, it returns false. If it's a directory, it returns false. If it's a real file that has byte contents, whether it's binary or plain text, it will return true. Am I correct?
In reply to Re: Shotgun.pl - Shoots Holes in Files
by harangzsolt33
in thread Shotgun.pl - Shoots Holes in Files
by BlueSquare23
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |