Jonathan Scott Duff wrote:
> On Thu, Aug 17, 2000 at 03:30:09PM -0700, Jon Ericson wrote:
> > Nathan Wiger wrote:
> > >    3. Can you support here documents with this syntax?
> >
> > I haven't thought about this yet, but you can always use print.
> 
> Should be the same:
> 
>         ><<'FOO'
>         blah
>         blah
>         FOO<

>From the style standpoint, print would be better here.  The whole point
of this code is to print something.  Use the expanded syntax (print) to
make that clear.  The compact syntax is for cases when the printing is
more of a side effect or afterthought:

  while (<>){
    push @line, >$_<;
  };

> I'd rather something like the following work instead though:
> 
>         print @filehandles "This goes to several filehandles\n";
>         print $fh1, $fh2, $fh3 "This goes to several filehandles\n";

I tried to simulate this with some exotic open commands, but I couldn't
get it to work.  This looks like a potentially useful extention to
print.  Perhaps it should be RFCed...

Jon
-- 
Knowledge is that which remains when what is
learned is forgotten. - Mr. King

Reply via email to