Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2003
    Posts
    138

    Unanswered: How can I get the current error number and corresponding error string?

    How can I get the current error number and corresponding error string?

  2. #2
    Join Date
    Nov 2003
    Posts
    65
    Show a sample code of where you would want your error shown.

  3. #3
    Join Date
    Jun 2004
    Location
    Nowhere Near You
    Posts
    89
    Why not try:
    $!
    $OS_ERROR
    $ERRNO
    If used in a numeric context, yields the current value of the errno variable, identifying the last system call error. If used in a string context, yields the corresponding system error string.

  4. #4
    Join Date
    Nov 2003
    Posts
    65
    That's what i was gonna suggest ... just wanted to put in his/her code.

  5. #5
    Join Date
    Oct 2002
    Location
    Baghdad, Iraq
    Posts
    697
    Quote Originally Posted by valexena
    How can I get the current error number and corresponding error string?
    It's been answered, but regardless, Read The Fine Manual:

    Code:
    perldoc perlvar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •