[lug] odd perl question

Tkil tkil at scrye.com
Mon Jun 19 19:32:28 MDT 2000


>>>>> "Chip" == Chip Atkinson <chip at rmpg.org> writes:

Chip> Why do I get a warning about the following being interpreted as
Chip> a function

Chip>    print ("(");

Chip> while 

Chip>    print("(");

Chip> does not get the warning?

man perldiag (where the diagnostic is explained, which also refers you
to) man perlop.

as for "why", the perlop man page more or less explains it.  a
historical view would probably include habits from shell programming
(e.g. "chmod" and friends) as well as from more traditional languages
such as c (where the parentheses are required on a function call).

t.




More information about the LUG mailing list