I have been told that this is possible but I don't quite understand how to implement that with getopt::std.That's because you should use Getopt::Long. Also
Don't open files like this if you don't know what Perl does with two-argument open. Especially if $log_dir and $log_file come from user input. Do it like this:open STDOUT, ">> $log_dir/$log_file
Consider using File::Spec::Functions for manupilating file names.open STDOUT, '>>', $log_dir/$log_file
Don't call functions like this if you don't know what it actually does. Call them like this:&filesize;
filesize();
use warnings; instead of -w. Also use strict;
In reply to Re: getopt::std to pass arguments to command line help
by Anonymous Monk
in thread getopt::std to pass arguments to command line help
by hextor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |