John W. Krahn wrote:
In the case of:
my_function "foo", "bar";
my_function is a list operator which has a very low precedence so the
parentheses are not required.
Sometimes, i.e. if the sub is not predeclared, they are required.
C:\home>type test.pl
my_function "foo", "bar";
sub my_function { print "@_\n" }
C:\home>perl test.pl
String found where operator expected at test.pl line 1, near
"my_function "foo""
(Do you need to predeclare my_function?)
syntax error at test.pl line 1, near "my_function "foo""
Execution of test.pl aborted due to compilation errors.
C:\home>
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/