But I was surprised by what I got when I executed the following code (using perl 5.006001). I have not gone thru the Perl sources to explain the behavior. Or I am missing something obvious?
So I ask you to answer without executing it: 1/ Does it compile 2/ If so, what does it do?
open *&, "/etc/printcap"; print "opened\n" unless eof( *&); print <&>;
-- stefp
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why is *& weird?
by japhy (Canon) on Sep 04, 2001 at 01:07 UTC | |
|
Re: why is *& weird?
by stefp (Vicar) on Sep 04, 2001 at 01:17 UTC |