in reply to getopt::std to pass arguments to command line help
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: getopt::std to pass arguments to command line help
by Anonymous Monk on Jan 20, 2015 at 17:45 UTC | |
|
Re^2: getopt::std to pass arguments to command line help
by Anonymous Monk on Jan 20, 2015 at 18:03 UTC | |
by Anonymous Monk on Jan 20, 2015 at 18:09 UTC | |
by hextor (Initiate) on Jan 20, 2015 at 21:07 UTC |