According to an item in the less FAQ, it appears to use the termcap libraries for screen handling. There are at least one or two modules, including Term::Cap, that appear to interface that library.
Alternately, you might also be able to use another screen-handling module (such as the Curses module) to manipulate the output as you desire.
HTH.
In reply to Re: "Less" perl output
by atcroft
in thread "Less" perl output
by downer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |