Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    open (T, ">out") or die "Can't open out $!\n";
    printf(T "hello\n");
    
  2. or download this
    #!/usr/bin/perl
    open (T, ">out") or die "Can't open out $!\n";
    printf(
    T "hello\n");
    
  3. or download this
    String found where operator expected at ./t.pl line 4, near "T "hello\
    +n""
            (Do you need to predeclare T?)
    
  4. 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.
    
  5. or download this
    #!/home/toma/perl58i/bin/perl
    use strict;
    ...
    open (T, ">out") or die "Can't open out $!\n";
    printf (
    T "hello\n");
    
  6. 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).
    
  7. or download this
    #!/usr/bin/perl
    open (T, ">out") or die "Can't open out $!\n";
    printf
    T "hello\n";