You can make a function that does it for you such as:

```perl
"Current Time: " . $time->strftime("%I:%M:%S %p %Z | %A, %b %e, %Y") . build_html($len, $match);
```