Locale::Hebrew - BIDI support for Perl (Severly incomplete).
use Locale::Hebrew;
$visual = Locale::Hebrew::hebrewflip($logical);
I can't recall where I snipped this code from. It is severely incomplete - adds extra spaces and can't take care of inverted paranthesis.
Write a reasonable routine myself. Optionally in Perl.
Tie::Collection is part of the HTPL package. See HTML::HTPL
To install Apache::HTPL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::HTPL
CPAN shell
perl -MCPAN -e shell install Apache::HTPL
For more information on module installation, please visit the detailed CPAN module installation guide.