Mac::ErrorsMac::Errors is a Perl module with constants for Mac error codes. | |
Download |
Mac::Errors Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- brian d foy
- Publisher web site:
- http://search.cpan.org/~bdfoy/
Mac::Errors Tags
Mac::Errors Description
Mac::Errors is a Perl module with constants for Mac error codes. Mac::Errors is a Perl module with constants for Mac error codes.SYNOPSISuse Mac::Errors qw(openErr);if( $value == openErr ) { ... }my $error = $MacErrors{ $symbol }; # -- OR -- my $error = $MacErrors{ $number };my $symbol = $error->symbol; my $number = $error->number; my $desc = $error->description;# in MacPerl, $^E is meaningful, and we tie $MacError to it use Mac::Errors qw( $MacError );open FILE, $foo or die $^E; # error number open FILE, $foo or die $MacError; # gets description from $^EThe %MacErrors hash indexes error information by the error number or symbol. Each value is a Mac::Errors object which has the symbol, number, and description.The $MacError scalar performs some tied magic to translate MacPerl's $^E to the error text. Requirements: · Perl
Mac::Errors Related Software