The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

toposort - Sort topologically

VERSION

This document describes version 0.001 of toposort (from Perl distribution App-toposort), released on 2017-04-03.

SYNOPSIS

 toposort [OPTION]... [INPUT]...

Sample input:

 c: a
 c: b
 b: a
 d: c

Sample output:

 d
 c
 b
 a

DESCRIPTION

This utility accepts items from input lines. If input line is in the form of:

 A: B

then it means A must come before B (or you may also read it as "B depends on A"). After all input is read, this utility will perform topological sort on the dependency graph and print the items in order. Cyclic graph will result in an error.

EXIT CODES

0 on success.

255 on I/O error.

99 on command-line options error.

OPTIONS

--ignore-case, -i

FAQ

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/App-toposort.

SOURCE

Source repository is at https://github.com/perlancar/perl-App-toposort.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-toposort

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.