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:
"print" with "die" - What's wrong ??

 



moroshko
Novice

Jun 21, 2008, 1:24 PM

Post #1 of 3 (585 views)
"print" with "die" - What's wrong ?? Can't Post

Can anyone please explain me why the following program doesn't prints "123" ?

How can I fix it so that "die"'s message will be printed after "print"'s message ?

Thanks !!

#!/usr/bin/perl
use warnings;
use strict;

print 1;
print 2;
die "3\n";


molent
New User

Jun 21, 2008, 3:13 PM

Post #2 of 3 (578 views)
Re: [moroshko] "print" with "die" - What's wrong ?? [In reply to] Can't Post


Code
#!/usr/bin/perl 
use warnings;
use strict;
use English;

$OUTPUT_AUTOFLUSH = 1;

print 1;
print 2;
die "3\n";



moroshko
Novice

Jun 21, 2008, 10:59 PM

Post #3 of 3 (573 views)
Re: [molent] "print" with "die" - What's wrong ?? [In reply to] Can't Post

Thank you !! Smile

 
 


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

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