I don't think you can't set $! since it is a system var. Perhaps you could do something like:
my $err_text;
die $err_text if !Foo();
sub Foo_baz { return 1 if shift; $err_text = "Your error message." return 0; }
Thanks Ron, yeah if I want to I'll have to probabblly use the old error var route. I just wanted to avoid having a special error var tokeep track of and die()ing in the function itself. (IE let them kill themselves not have me do it :)
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>