Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

parse::errorstring::perl::erroritem(3pm) [debian man page]

Parse::ErrorString::Perl::ErrorItem(3pm)		User Contributed Perl Documentation		  Parse::ErrorString::Perl::ErrorItem(3pm)

NAME
Parse::ErrorString::Perl::ErrorItem - a Perl error item object VERSION
version 0.15 Parse::ErrorString::Perl::ErrorItem Each object contains the following accessors (only "message", "file", and "line" are guaranteed to be present for every error): type Normally returns a single letter identifying the type of the error. The possbile options are "W", "D", "S", "F", "P", "X", and "A". Sometimes an error can be of either of two types, in which case a string such as ""S|F"" is returned in scalar context and a list of the two letters is returned in list context. If "type" is empty, you can assume that the error was not emimtted by perl itself, but by the user or by a third-party module. type_description A description of the error type. The possible options are: W => warning D => deprecation S => severe warning F => fatal error P => internal error X => very fatal error A => alien error message If the error can be of either or two types, the two types are concactenated with "" or "". Note that this description is always returned in English, regardless of the "lang" option. message The error message. file The path to the file in which the error occurred, possibly truncated. If the error occurred in a script, the parser will attempt to return only the filename; if the error occurred in a module, the parser will attempt to return the path to the module relative to the directory in @INC in which it resides. file_abspath Absolute path to the file in which the error occurred. file_msgpath The file path as displayed in which the error message. line Line in which the error occurred. near Text near which the error occurred (note that this often contains newline characters). at Additional information about where the error occurred (e.g. ""at EOF""). diagnostics Detailed explanation of the error (from perldiag). If the "lang" option is specified when constructing the parser, an attempt will be made to return the diagnostics message in the appropriate language. If an explanation is not found in the localized perldiag, the default perldiag will also be searched. Returned as raw pod, so you may need to use a pod parser to render into the format you need. stack Callstack for the error. Returns a list of Parse::ErrorString::Perl::StackItem objects. AUTHORS
o Petar Shangov, "<pshangov at yahoo.com>" o Gabor Szabo <http://szabgab.com/> o Ahmad M. Zawawi <ahmad.zawawi@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Petar Shangov. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.10.1 2010-11-29 Parse::ErrorString::Perl::ErrorItem(3pm)

Check Out this Related Man Page

DateTime::Format::DateParse(3pm)			User Contributed Perl Documentation			  DateTime::Format::DateParse(3pm)

NAME
DateTime::Format::DateParse - Parses Date::Parse compatible formats SYNOPSIS
use DateTime::Format::DateParse; my $dt = DateTime::Format::DateParse->parse_datetime( $date ); my $dt = DateTime::Format::DateParse->parse_datetime( $date, $zone ); DESCRIPTION
This module is a compatibility wrapper around Date::Parse. USAGE
Import Parameters This module accepts no arguments to it's "import" method and exports no symbols. Methods Class Methods o parse_datetime($date [, $zone]) Accepts a Date::Parse compatible $date string and optionally a Time::Zone compatible $zone string. Returns a DateTime object. GOTCHAS
o If parse_datetime is called on a $date that doesn't know specify a timezone and $zone is not set, then the timezone of the returned DateTime object will be set to the "local" timezone. This is consistent with the behavior of Date::Parse. o If parse_datetime is called without a $zone but the $date string does specify a timezone/offset or if parse_datetime is called with a $zone that DateTime::TimeZone does not understand, the returned DateTime object will have it's timezone set to a fixed offset from UTC. This means that "DST" information is not available and date math will not reflect "DST" transitions. This may be resolved for true timezones by using the DateTime::TimeZone::Alias module to "alias" the Time::Zone timezone to an Olson DB name. This may be done automatically in a future release. CREDITS
Graham Barr (GBARR) <gbarr@pobox.com>, author of Date::Parse Everyone at the DateTime "Asylum". SUPPORT
Support for this module is provided via the <datetime@perl.org> email list. See <http://lists.perl.org/> for more details. AUTHOR
Joshua Hoblitt (JHOBLITT) <jhoblitt@cpan.org> COPYRIGHT
Copyright (c) 2005-6 Joshua Hoblitt. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the licenses can be found in the LICENSE file included with this module, or in perlartistic and perlgpl as supplied with Perl 5.8.1 and later. SEE ALSO
Date::Parse, Time::Zone, DateTime, DateTime::TimeZone, DateTime::TimeZone::Alias, <http://datetime.perl.org/> perl v5.10.1 2010-04-16 DateTime::Format::DateParse(3pm)
Man Page