Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

replacing carriage return line feed usinf chr()

by Piercer (Beadle)
on Mar 14, 2003 at 14:24 UTC ( [id://243053]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a = "aaaaa\n";
    $a = $a."bbbbb";
    ...
    
    what it actually runs is 
    insert into test (field1) value 'aaaaa
    
  2. or download this
    $sql="insert into test (field1) value 'aaaaaaa' + Chr(13) + Chr(10) + 
    +'bbbbbbbb';
    
  3. or download this
    $a =~ s/chr(13)chr(10)/' + Chr(13) + Chr(10) + '/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://243053]
Approved by robartes
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 19:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found