Tom Christiansen wrote:
> format $fh <<EO_FORMAT;
> @<<<<<<<<<<<<<<<<, @<<<<<<<<<<<<
> $stuff, $junk
> EO_FORMAT
Actually this is pretty cool, add a = and turn it into a variable
declaration:
my format $FORMAT = <<'.';
@<<<<<<<<<<<<<<<<, @<<<<<<<<<<<<
$stuff, $junk
.
And that looks pretty similar to Perl 5. ;-)
Anyways, I went ahead and RFC'ed the thing, we should take a look at it
again when it posts. My goal was to make formats look 90% like Perl 5
without requiring any special syntax, and it works pretty well, but it's
definitely not a complete RFC yet.
-Nate