Results 1 to 2 of 2

Thread: changing all the carriage returns into commas in perl

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2001
    Posts
    56

    changing all the carriage returns into commas in perl

    I think what i need is something like this...



    PHP Code:
        $value =~ tr/????/,/; 
    but what do i need to put in for the question marks - it needs to represent a carriage return entered by a user in the previous form page.

  2. #2
    Member
    Join Date
    Jan 2003
    Posts
    44
    $value =~ tr/\r/,/;

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