PRT(1p) User Contributed Perl Documentation PRT(1p)

prt - Command line frontend of App::PRT

    $ prt <command> <args>
    $ prt <command> <args> <files>

prt is the command line frontend of App::PRT.

You can specify the target files to refactor. For example:

    prt replace_token foo bar lib/**/*.pm t/*.t # Refactor Perl modules in lib/ and test files in t/

NOTE: "App::PRT" does not glob (expand wildcards). In the above command, the shell must expand the "**/*.pm" and "*.t".

Without target files, "App::PRT" detects source files in your project automatically. "App::PRT" looks for a "cpanfile" to detect the project's root directory. When executed in a git repository, all files in the repository are used.

    prt replace_token foo bar   # Refactor the project in current working directory

Copyright (C) 2014-2019 hitode909 and contributors.

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

hitode909 <hitode909@gmail.com>

2023-10-03 perl v5.36.0