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

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:

Replies are listed 'Best First'.
Re^4: How to perform single operation to each line in file
by rammohan (Acolyte) on Jan 21, 2014 at 12:01 UTC
    sorry, I missed { this flower brackets. now i updated my question.. sorryyyy