? This lets the user specify the mode on the command line just as you would in the program, using another argument.open $filehandle, (@ARGV == 1 ? '>' : ()), @ARGV;
In reply to Re: Append to file or create file depending on input filename.
by JadeNB
in thread Append to file or create file depending on input filename.
by markuhs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |