On Thu, 03 Aug 2000, Chaim Frenkel wrote:
> What would be the method to _avoid_ emitting something?
>
> What would be the result of
>
> open(Foo, "Bar") # Prints FILEHANDLE=0xdeadbeef
> $x++; # Prints 3
>
> What makes something a 'real' void so that it would print. Vs. not
> having something that would catch the return value?
no implicit;
(Or 'no implicit print;' after rev 2 comes out. ;-)
If you really only wanted to turn it off for one line, you could assign
the result to undef.
undef = open(Foo, "Bar");
undef = $x++;
I tend to use this in a variety of places, but not for a big block of
code. (Mostly because I don't have the scoping issue fixed, so I get
all the spurious dumps from calls I make as well. I'll have an RFC for
that, too, which will hopefully allow me to impliment this as a module
vice a pragma; I've another RFC coming with a similar, (but more
valid, you'll be glad to know) issue); mumkin tomorrow.)
--
Bryan C. Warnock
([EMAIL PROTECTED])