print FH @listWell, it's more of a coincidence than a real fact, but that looks much like indirect object dereferentiation, a laYou don't put a comma between the filehandle name and the list you give to print. I've just always thought that was odd, and I go out of my way to point it out to people in Perl classes. I don't have a problem with this while I code, but I still think it's an odd corner of syntax.
and (BTW) it won't be a coincidence any more in Perl6...FH->print(@list)
In reply to Re: Perl oddities
by blazar
in thread Perl oddities
by brian_d_foy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |