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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: General Discussions: General Questions:
Grumble Rant



Jan 19, 2001, 8:15 PM

Post #1 of 2 (5419 views)
Grumble Rant Can't Post

Why the heck does an eval block require a semicolon to terminate it? I just spent over an half an hour trying to find that error, and who amongst you would go looking for a missing semicolon at the end of a statement block?

I feel better now. I love programming in PERL, but every now and then AAAAAAAAAAH :)


Jan 20, 2001, 2:58 AM

Post #2 of 2 (5416 views)
Re: Grumble Rant [In reply to] Can't Post

As odd as it sounds, eval is considered a statement, not a block (like a subroutine). Its purpose is to define $@, which will be either true (error message) or false (undef).


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

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