[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Copying hashes



On Tue, Feb 01, 2000 at 10:49:42AM -0500, Ronald J Kimball wrote:
> P.S.  I support bitwise operators on filehandles.

At first glance I thought you were kidding about bitwise operators on
filehandles until I realized these would be useful:

    open FOO, '<foo';
    open BAR, '<bar';
    open BAZ, '<baz';
    open QUX, '>qux';

    while (read FOO|BAR, $data, 1024) { # binary OR of 1k from FOO and BAR?
        print (QUX&BAZ, $data); # I have no idea what this would do.
    }

Ok, so perhaps bitwise operators on filehandles wouldn't be that useful!

Tom

-- 
--    Tom Rathborne    tomr@aceldama.com
--                     http://www.aceldama.com/~tomr/
--    "I seem to be having tremendous difficulty with my life-style."

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe