Perl extension to change text orientation in CSS