zeni has asked for the wisdom of the Perl Monks concerning the following question:
Error: Use of uninitialized value in printf at perl_lib/areg_fparse.pm
I wonder why this error! Using perl after 2yrs!!package reg_spec.pm; sub new { my $self = {}; my $dummy = shift; my $name = shift; my $offset = shift; my $comment = shift; my @fields = @_; my $fref = \@fields; my $fc = @fields; $self->{name} = $name; $self->{field_ptr} = $fref; $self->{offset} = $offset; $self->{comment} = $comment; bless ($self); return $self; } package areg_fparse.pm; my $new_reg = reg_spec->new ($cur_reg_name,$cur_reg_offset,$cur_reg_co +mment,@cur_fields); printf $OFILE "<Descr Value=\"%s\"> </Descr>\n",$self->{comment};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uninitialized value error
by moritz (Cardinal) on May 02, 2012 at 06:48 UTC | |
|
Re: Uninitialized value error
by davido (Cardinal) on May 02, 2012 at 06:53 UTC | |
|
Re: Uninitialized value error
by Jenda (Abbot) on May 02, 2012 at 09:14 UTC | |
by zeni (Beadle) on May 02, 2012 at 11:44 UTC | |
by bulk88 (Priest) on May 02, 2012 at 17:56 UTC |