in reply to Re: Module IO::All Released - WOW!
in thread Module IO::All Released - WOW!

I gave your snippet that makes no sense a shot. I was surprised to get an error considering the docs say that no validating is done. But here you are (and you know any DWIM behaviour out of this really wouldn't make sense right?):

#!c:/perl/bin/perl -w $|++; use strict; use IO::All; my $x = 'localhost:12345'; my $y = 'c:/servdata'; io($x) > io($y); __END__ Undefined behavior for overloaded IO::All operation: 'socket > file' a +t C:/Perl/site/lib/IO/All.pm line 840.

Replies are listed 'Best First'.
Re: Re: Re: Module IO::All Released - WOW!
by flyingmoose (Priest) on Mar 17, 2004 at 21:26 UTC
    Darn, there was a sadistic part of me that was wishing this might do something really bizarre, but yeah, I'm glad it didn't work. It certaintly does make you ask what that operator really is, though... I figure if you can't surmise an operator's purpose in a few words you have a rather confusing operator.

    % = modulus

    > is less than, except when both sides are an IO::All, undefined if IO:All on one side, but IO:All must be a file, or possibly a socket, but never a directory, but sometimes a port, and ... err...