... I inherited a scile file ...
I don't know what a "scile" file is.
... a command that you can use on the Perl script to get help on how to run that file or which arguments to pass to the script while running ...
There is no such general utility of which I am aware (update: but see perldoc as noted by haukex). However, any well-designed, non-trivial script will | should IMHO have a "usage" or "help" message of some kind that might look something like
(where $0 is (more or less) the script name; see perlvar). If you can't find such code, then after examining the script to try to determine that it will do nothing irreversible, maybe try invoking the script with no command line arguments; this may trigger a usage/help message. There may also be a command line flag or switch like -h --help -? /h /? or similar supported by the script. Maybe also look for the presence of modules Getopt::Std or Getopt::Long used to manage command line options and arguments and see what they're doing in the script.use constant USAGE => <<"EOT"; usage: perl $0 -yz input_file_name output_file_name where: -y optional: command line switch to enable Y -z optional: command line switch to enable Z input_file_name required: input file name output_file_name required: output file name etc... EOT ... die USAGE unless @ARGV >= 2; ...
Give a man a fish: <%-{-{-{-<
In reply to Re: Perl command line switches
by AnomalousMonk
in thread Perl command line switches
by Irakro1997
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |