Using the CLI to send commands from perl has two obvious problems: it is slow and its very hard (if not impossible) to use blobs. There is a host of other problems to handle that all stem from the fact that CLIs are meant run in batch or batch mode. Neither one of them is well suited for access from a script.
Update: "meant to run in batch mode" should read "meant to run in interactive mode".
|