Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re(3): NET::SMTP

by elbie (Deacon)
on Aug 11, 2003 at 15:58 UTC ( #282911=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: NET::SMTP
in thread Not hard-code text with NET::SMTP ?

I suspect that staging.log is playing tricks on you, but having a blank line at the end of the file. You can always check if the contents of the current instance of $line is empty before you assign it to $newline.

Something like this:

if( $line =~ /^\s*$/ ) { $newline = "Blank line."; } else { $newline = $line; }

Or, better yet, you could play around with debug mode and step through the program as it runs.

elbieelbieelbie


Comment on Re(3): NET::SMTP
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2014-12-22 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls