Ken Lehman wrote: > > I want to be able to return a true or false value from a function in a > module and populate the $! variable with the specific errors. Is this > possible? Is there documentation on how to do this? I can find docs on how > to use $! but not how to set it. Thanks for any help
$! is a special variable that is a number in numeric context and a string in string context. You can assign a number to $! and it will display the corresponding system error message but you cannot assign a string to it. $! is set by perl whenever a system call sets errno. $! is described in the perlvar.pod document. perldoc perlvar So, you CAN set it if you want to return one of the pre-defined error messages but it can also be changed by perl on any system call so it might not retain the value that you set. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>