in reply to Wierd print and sub ordering problem
Ah, you've hit the "print filehandle" parsing problem. Perl knows that foo is a sub as you have predeclared it. The problem with print bar () is that print will try to print the empty list to the filehandle bar.
If you omit the space between bar and (), it will parse differently.
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
|---|