in reply to Re: Re: Problem parsing and printing data from file
in thread Problem parsing and printing data from file

oh.. and why is tr/\n//d better that s/\n//g ?

:)
  • Comment on Re: Re: Re: Problem parsing and printing data from file

Replies are listed 'Best First'.
Re^4: Problem parsing and printing data from file
by Roy Johnson (Monsignor) on May 06, 2004 at 16:08 UTC
    Because that's what tr/// is for: replacing or removing specific characters, without concern for context. There's also a trivial amount of improved efficiency, but it's mostly about using the "right tool for the right job".

    The PerlMonk tr/// Advocate