39 users online (0 members and 39 guests)  


  Results 1 to 4 of 4

Related

  1. reading data line by line from textarea    Forum: ASP Forum
    Replies: 3
  2. seperate whole number    Forum: Javascript Forum
    Replies: 1
  3. Error MySQL Error: 1064 - subqueries    Forum: PHP Forum
    Replies: 0
  4. Replies: 8
  1. #1
    newhorizonz's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    3

    Trapping the error line number

    I am using a fatalerror subroutine to trap all runtime errors e.g.

    if ($notfound) { &fatalerror('$errorno');}

    Is there an environmental variable that can be passed as well that indicates the current line number in the script where the error occured?

    Thanks

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    That very much depends on what language you are using

    care to share?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    newhorizonz's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    3
    Quote Originally Posted by QuietDean
    That very much depends on what language you are using

    care to share?
    Yeah sorry - Perl!

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    typicically, Perl is the one language I am not versed on .

    I read somewhere about using CGI.pm for -

    Code:
    CGI::Carp qw(fatalsToBrowser);
    That prints all the found errors to the browser.

    I did read a nice piece on trapping errors here -

    http://www.hk8.org/old_web/linux/cgi/ch15_02.htm

    Hope that helps, even if its only second-hand help
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread