in reply to Parsing a command-line string into an array

I have failed to find something like my @args = Getopt::Long::parse($string).

Perhaps I'm misunderstanding but don't you just need GetOptionsFromString?


🦛

Replies are listed 'Best First'.
Re^2: Parsing a command-line string into an array
by bliako (Abbot) on Dec 22, 2023 at 15:12 UTC

    Nope, it needs a spec which I don't have as these are ffmpeg's params I need to pass on. And it does not return an array but processes the args. I guess internally it does a good job in splitting the input string but I don't know how to access that.