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
In reply to why is *& weird? by stefp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |