I don't care for returning an empty string to signify the conversion error. I think I'd return undef or die on all errors so the user can catch it in an eval block. The empty string is too close to being legitimate, as the user might've passed an empty string *in*. If you want to split your errors into groups, I'd suggest returning undef for one group, and die for the other.
Having said all that, keep in mind that these are my opinions, and they're worth exactly what you paid for 'em. ;^)
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: RFC: Win32::API API
by roboticus
in thread RFC: Win32::API API
by bulk88
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |