http://qs321.pair.com?node_id=90597


in reply to Here, doccy doccy. nice doccy. heredoc, treat.

Anything that allows for interpolated context (which means qq, qx and qr) can fairly easily be adapted to use here docs:
print `${\<<HERE}`; date HERE
or
print qx {${\<<HERE}}; date HERE
And for qx:
print qr /${\<<HERE}/; x*foo HERE
For q and qq, we already know what to do, single or double quote the delimeter. Which leaves us with qw, which is fairly simple too:
my @words = split ' ' => <<'HERE'; some words go here HERE

-- Abigail