Perl for Python
Perl as a Python package
The power of Perl in Python is just a pip install perl
away.
Read the documentation, install it from pypi, or grab the code from github.
The power of Perl in Python is just a pip install perl
away.
Read the documentation, install it from pypi, or grab the code from github.
Haven't you always dreamed of having the power of Perl at your fingertips when writing Python?
Well, this package is proof that dreams can come true:
$ pip install perl
$ python
>>> import perl
>>> value = "Hello there"
>>> if value =~ /^hello (.+?)$/i:
... print("Found greeting:", $1)
...
Found greeting: there
>>> value =~ s/there/world/
>>> print(value)
Hello world
Note: This is very silly and probably shouldn't go anywhere near production code.