>Peter Scott wrote:
>>
>> No-one AFAICT has yet brought up formats, and what would happen to them if
>> bareword filehandles go the way of the dodo.
>Here's some thoughts I've been tooling with. If we take advantage of the
>indirect object syntax, we can actually make format into a member
>function:
> format $FILE (q{
>@<<<<<<<<<<<<<<<<, @<<<<<<<<<<<<
>$stuff, $junk
> });
>This would automatically flip around and call $FILE->format(...). And it
>looks pretty darn familiar.
I was thinking of using heredocs there, as I think they'd be more
legible. Hm... almost you already can, what with formline.
format $fh <<EO_FORMAT;
@<<<<<<<<<<<<<<<<, @<<<<<<<<<<<<
$stuff, $junk
EO_FORMAT
Although then you have the nasty leading-whitespace issue, requiring
nasties like
format $fh <<EO_FORMAT;
@<<<<<<<<<<<<<<<<, @<<<<<<<<<<<<
$stuff, $junk
EO_FORMAT
or actually probably
format $fh <<EO_FORMAT;
@<<<<<<<<<<<<<<<<, @<<<<<<<<<<<<
$stuff, $junk
EO_FORMAT
--tom