in reply to Re: How to perform single operation to each line in file
in thread How to perform single operation to each line in file

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: How to perform single operation to each line in file

Replies are listed 'Best First'.
Re^3: How to perform single operation to each line in file
by Corion (Patriarch) on Jan 21, 2014 at 11:51 UTC

    When running your code, I get the following error messages:

    Missing right curly or square bracket at tmp.pl line 14, at end of lin +e syntax error at tmp.pl line 14, at EOF Execution of tmp.pl aborted due to compilation errors (#1) (F) The lexer counted more opening curly or square brackets than c +losing ones. As a general rule, you'll find it's missing near the place +you were last editing. Uncaught exception from user code: Missing right curly or square bracket at tmp.pl line 14, at en +d of line syntax error at tmp.pl line 14, at EOF Execution of tmp.pl aborted due to compilation errors. at tmp.pl line 14

    Maybe you want to read the error messages and correct the issues raised by them.

Re^3: How to perform single operation to each line in file
by marto (Cardinal) on Jan 21, 2014 at 11:51 UTC

    The code you posted produces exactly what I'd expect:

    Missing right curly or square bracket at path.pl line 14, at end of li +ne syntax error at path.pl line 14, at EOF Execution of path.pl aborted due to compilation errors (#1) (F) The lexer counted more opening curly or square brackets than c +losing ones. As a general rule, you'll find it's missing near the place +you were last editing. Uncaught exception from user code: Missing right curly or square bracket at path.pl line 14, at e +nd of line syntax error at path.pl line 14, at EOF Execution of path.pl aborted due to compilation errors.

    You have been here for a while, have posted many times. Please take the time to read Tutorials -> PerlMonks for the Absolute Beginner and How do I post a question effectively?. Ensure the code you post matches the code you are actually running. You seem to be facing the same (or very similar) problems, please take the time to learn the basics:

      sorry, I missed { this flower brackets. now i updated my question.. sorryyyy