Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: problem with 'bare LF' in script

by graff (Chancellor)
on Nov 12, 2008 at 14:34 UTC ( [id://723164]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        $__to =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
        $__cc =~ s/(\r\n|\n\r|\r|\n)/\r\n/sg;
        ...
    
  2. or download this
    my %mail =
    (
    ...
        "Subject"         => "$__subject",
        "Content-Type"     => $__content_type,
    );
    
  3. or download this
    for ( $__to, $__subject, $__content_type, ... ) {
        tr/\r\n/ /;
    ...
        "Subject"         => $__subject,
        "Content-Type"     => $__content_type,
    );
    
  4. or download this
    my @message_lines = 
      ( '', # blank line
    ...
       );
    
    my $_mail_message = join( "\r\n", @message_lines );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-19 13:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found