
Python vs Perl vs Ruby for Text Processing Scripts
Compare Python, Perl and Ruby for text processing scripts: one-liners, regex support, startup, availability on servers, and which to choose for new work.
Tag
30 posts

Compare Python, Perl and Ruby for text processing scripts: one-liners, regex support, startup, availability on servers, and which to choose for new work.

Python's sys.path and the shell PATH look alike but work differently. Learn how imports are found, why ModuleNotFoundError appears, and how to debug both.

Use Git from Python with GitPython or subprocess: read status and logs, create commits, handle errors and encodings, and choose between them for scripts.

Use the Python Docker SDK to run containers, read logs, exec commands, build images and clean up, with error handling and when to call the CLI instead.

Build a tiny JSON API in Python or Go for scripts and tests: a few routes, JSON in and out, status codes, a fake backend and safe local binding.

Compare Go, Rust and Python for command line tools: startup time, distribution, development speed, safety and the same small tool in each language.