Results 1 to 2 of 2

Thread: Perl Script Replace

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2000
    Location
    Manchester NH
    Posts
    833
    I need to replace all the new line characters with a <br> or something else so that my datafile stays one order per line.

    replace \n with <br>



    $content=~tr/\n/<br>/;



    Anyone know of a place to go for perl questions?
    Kurt Simons
    [I know I'm a hack but my clients don't!]

  2. #2
    Guest
    A good place is http://www.perl.com/ or the forums.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width