Home: Perl Programming Help: Beginner:
End a script without an error



BobGatto
New User

Sep 23, 2012, 9:16 PM


Views: 2108
End a script without an error

I'm trying to write a script that sends an email. the program works if at the end of it I add something like this:

print "Content-type text/html\n\n";

print "It's OK\n";

However, if I have no print command at the end, I get an error. Is there a way to end a Perl script without printing to the web browser? If not can I print to a separate browser window?
Thanks for all the help,

Bob Gatto


FishMonger
Veteran / Moderator

Sep 24, 2012, 10:13 PM


Views: 2095
Re: [BobGatto] End a script without an error

Why didn't you respond last week to our posts on this same question that you asked on devshed?

http://forums.devshed.com/perl-programming-6/end-a-perl-script-without-doing-any-thing-and-get-930863.html

You will need to provide more details on what you need to accomplish, what your are currently doing and how your current results differ from what you expect.