paperlined.org
dev > perl > modules > related_modules
document updated 3 days ago, on Sep 4, 2025

parse command line like Bash

The goal is to turn a string like command "arg one" arg2 arg\ three into a string of tokens like ('command', 'arg one', 'arg2', 'arg three').

(Don't get confused — the goal here is not to start with @ARGV and do further processing, similar to Getopt::Std; there are a million modules for that already.)

can only parse a single command

can parse multiple commands separated by semicolon, or do redirection