Acme-Pythonic-Functions
view release on metacpan or search on metacpan
lib/Acme/Pythonic/Functions.pm view on Meta::CPAN
The programming-language "Python" offers some basic string-, list- and other functions, that can be used quite intuatively. Perl often uses regular-expressions or special variables for these tasks. Although Perl's functions are in general more flexib...
=head2 print-Replacement-Function
=over 12
=item C<pyprint>
Python adds a (system-dependent) newline-character by default to strings to be printed.
This is rather convenient and can be found in the say()-function of Perl 5.10 and above too. I wasn't happy with the way, say() prints lists though. You can have that with something like 'say for @a;', but I like the way, Python prints lists better. ...
If you have to print more complex data-structures, use Data::Dumper.
=back
=head2 String-Functions
=over 12
=item C<endswith($foo, $bar)>
Tests whether $foo ends with $bar (return-value: 1 or 0).
( run in 0.957 second using v1.01-cache-2.11-cpan-a5abf4f5562 )