in reply to Re: Question on XML output using Perl
in thread Question on XML output using Perl
I have typed this at initial part of the code...
sub new { my ($class) = @_; #my ($proto) = @_; #to make the constructor both class and object method #my $class = ref($proto) || $proto; my $self = { #attributes of object _id => undef, _user_scenario => undef, _result_type => undef, _result_log_link => undef, _not_exposed_reason => undef, _error_excerpt => undef, _triage => undef, }; bless $self, $class; return $self; }
then I wrote sub error_excerpt.For general output also I am not getting error_excerpt if there is any when I used
sub error_excerpt{ return defined($error_excerpt)?$self->{_error_excerpt}:"No Error Excer +pt."; }
Is there anything missing? I have used use strict and use warnings as well.Where I am doing mistake?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Question on XML output using Perl
by wfsp (Abbot) on Mar 16, 2010 at 16:16 UTC | |
by siddheshsawant (Sexton) on Mar 16, 2010 at 16:30 UTC | |
|
Re^3: Question on XML output using Perl
by almut (Canon) on Mar 16, 2010 at 16:17 UTC | |
by siddheshsawant (Sexton) on Mar 16, 2010 at 16:29 UTC | |
by Khen1950fx (Canon) on Mar 16, 2010 at 16:34 UTC |