st4k has asked for the wisdom of the Perl Monks concerning the following question:

File::Sort comes with a help file that is kind of hard to understand for me, could anybody give me a rundown on how to use the different switches in it?

Replies are listed 'Best First'.
Re: Using File::Sort
by clintp (Curate) on Dec 27, 2001 at 04:55 UTC
    That's a *long* manpage with lots of options. Care to be more specific?
      more specifically how the switches work.
      example from the manpage follows:
      Same sort but sorting numerically on characters 3 through 5 of the fifth field first, and only return records with unique keys
      sort_file({ u => 1, r => 1, k => ['5.3,5.5rn', '2.2,2.2'], o => 'outfile', I => ['file1', 'file2'] });
      this example is really confusing, what is the 1 for in the u option? true?

      Edit kudra, 2001-12-27 Replaced br with code

        Yes, 1 is true and 0 is false. As the File::Sort pod says, all switches take those boolean values. Every option listed without a following noun is considered a switch. Does that make it easier to understand?