Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Looking For The Obvious - Debugging Perl

by Jenda (Abbot)
on Jun 21, 2004 at 23:28 UTC ( #368583=note: print w/replies, xml ) Need Help??


in reply to Looking For The Obvious - Debugging Perl

As a module author you can't use $! to signal your module's errors. The list of possible values of $! is very restricted and is OS dependent. Try this for yourself, you can assign a small integer to $! and get the OS's error message, but you can't assign an adhoc message to the variable.

Your module has to use a different variable or die() with the error message.

Jenda
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
   -- Rick Osborne

  • Comment on Re: Looking For The Obvious - Debugging Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://368583]
help
Chatterbox?
[RonW]: RPerl is only a curiosity to me. I can see where some one who primarily codes in Perl might find RPerl useful, but to me, given the choice between RPerl's restrictions and C, I'd choose C
[LanX]: Rperl had better chances as alternative for inline::cpp
[LanX]: thus optimizing inner loops
[LanX]: .... well

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-05-22 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?