Python Module of the day

Who hasn’t been waiting to use Perl from Python? With this python module you can. As easy as import perl:

>>> import perl
>>> value = "Hello there"
>>> if value =~ /^hello (.+?)$/i:
...     print("Found greeting:", $1)
...
Found greeting: there
>>> value =~ s/there/world/
>>> print(value)
Hello world

https://pypi.org/project/perl/


Posted

in

by