Switches contains all the command line switch settings:

SWITCHES

All switches are optional.

The numeric-index switch should only be used when a filename has multiple numbers in it, e.g. 01-file01.html. This switch defaults to -1 which is the last number in the filename. Specifying the index as 1 will force the script to increment the first set of numbers. Specifying the index as 2 will force the script to increment the second set of numbers (which is redundant since the last set of numbers is the default anyway). Again, you get enough rope to hang yourself so don't use an index higher than the number of numbers in the file name.

The precision switch controls how many zeros are prepended to 'short' numbers, i.e. should the first file be file1.html, file01.html, file001.html, etc. For default values, the script first looks at the precision of min if it's present, then max. If neither value is specified, the script defaults to the precision in the input URI, meaning if you use the filename file23.html you'll get two digits of precision whether you want them or not.

The reverse switch simply prints out the list of URIs in order from max to min rather than from min to max.

The verbose switch turns on some basic warnings such as the detected precision and whether or not the min and max values were swapped.

--
Grant me the wisdom to shut my mouth when I don't know what I'm talking about.


In reply to Re^2: Specific instance of a repeated string by Ionizor
in thread Specific instance of a repeated string by Ionizor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.