Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: replace/substituion 4th field

by Anonymous Monk
on Feb 20, 2013 at 21:40 UTC ( #1019850=note: print w/ replies, xml ) Need Help??


in reply to Re: replace/substituion 4th field
in thread replace/substituion 4th field

  • There is no reason to use Text::CSV_XS or any other CSV module. For a csv file? Why is that?
  • (The /e flag stands for eval.) No sir, the /e modifier does NOT means eval.
    This is what perlop said about it; A /e will cause the replacement portion to be treated as a full-fledged Perl expression and evaluated right then and there. It is, however, syntax checked at compile-time.
    It is when you have /ee, that the second "e" evaled, the expression. Please read it up.

Comment on Re^2: replace/substituion 4th field
Replies are listed 'Best First'.
Re^3: replace/substituion 4th field
by 7stud (Deacon) on Feb 21, 2013 at 07:00 UTC

    There is no reason to use Text::CSV_XS or any other CSV module. For a csv file? Why is that?

    Because perl natively supplies a simple and efficient tool to do what the op wants.

    It is evaled when you have /ee, that the second "e" evaled, the expression. Please read it up.

    I originally had two ee's, but that was so slow compared to split(), I changed it to one e.

    It is, however, syntax checked at compile-time.

    ++ perl savoir-faire.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019850]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-07-30 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls