- or download this
#!/usr/bin/perl
open (T, ">out") or die "Can't open out $!\n";
printf(T "hello\n");
- or download this
#!/usr/bin/perl
open (T, ">out") or die "Can't open out $!\n";
printf(
T "hello\n");
- or download this
String found where operator expected at ./t.pl line 4, near "T "hello\
+n""
(Do you need to predeclare T?)
- or download this
(S) The Perl lexer knows whether to expect a term or an operator.
+ If it
sees what it knows to be a term when it was expecting to see an
operator, it gives you this warning. Usually it indicates that an
operator or delimiter was omitted, such as a semicolon.
- or download this
#!/home/toma/perl58i/bin/perl
use strict;
...
open (T, ">out") or die "Can't open out $!\n";
printf (
T "hello\n");
- or download this
printf (...) interpreted as function at ./t.pl line 6 (#1)
(W syntax) You've run afoul of the rule that says that any list op
+erator
followed by parentheses turns into a function, with all the list
operators arguments found inside the parentheses. See
perlop/Terms and List Operators (Leftward).
- or download this
#!/usr/bin/perl
open (T, ">out") or die "Can't open out $!\n";
printf
T "hello\n";