CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



BobGatto
New User

Sep 23, 2012, 9:16 PM

Post #1 of 2 (1439 views)
End a script without an error Can't Post

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

Post #2 of 2 (1426 views)
Re: [BobGatto] End a script without an error [In reply to] Can't Post

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.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives