SPUG: Dup'ing STDIN from DATA?

Matt Tucker tuck at whistlingfish.net
Fri Mar 16 15:05:08 CST 2001


-- Brian Ingerson <briani at activestate.com> spake thusly:

>> You're talking nonsense here. This would place '<&DATA' into the
>> array @ARGV, which would presumably cause Perl to try to open an
>> actual file named '<&DATA' when it got to 'while (<>)'. I haven't
>> even tried this, and I'd be shocked if it did anything like what you
>> expect.
> 
> Well it makes sense to me. And it does work. I know this because I
> actually *did* try it before I went and flamed you for flaming someone
> as bright as TGY. I'm actually shocked that you would post this
> *without* trying it.

Wow. I am shocked (as I said I'd be). Although it does make sense in a
way, it's still odd. My apologies to Tim for mouthing off without
actually checking my facts.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mail.pm.org/archives/spug-list/attachments/20010316/4784751c/attachment.bin


More information about the spug-list mailing list