Help for this page

Select Code to Download


  1. or download this
    $ perl -c crates
    syntax error at crates line 7, near "foreach @line "
    crates had compilation errors.
    ...
            syntax error at crates line 7, near "foreach @line "
    crates had compilation errors.
     at crates line 10.
    
  2. or download this
    $ perldoc perlintro | grep foreach
            the more friendly list scanning "foreach" loop.
    ...
        Instead of using "given()", you can use a "foreach()" loop. For ex
    +ample,
        requires initialization, such as a subroutine or a "foreach" loop.
    + It
    
  3. or download this
    $ perl -c crates
    Global symbol "$line" requires explicit package name at crates line 7.
    crates had compilation errors.
    
  4. or download this
    $ perl -c crates
    crates syntax OK