Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
But this doen't work. I always get:# in base class: our $TIMEOUT_ERROR; Readonly $TIMEOUT_ERROR => 10; # I also tried this instead: # Readonly our $TIMEOUT_ERROR => 10; # then in the sub class: if ($nothing_happens) { $self->errorcode( $TIMEOUT_ERROR ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inherit Readonly variables (constants)
by ikegami (Patriarch) on Mar 16, 2009 at 14:04 UTC | |
|
Re: inherit Readonly variables (constants)
by JavaFan (Canon) on Mar 16, 2009 at 13:37 UTC | |
|
Re: inherit Readonly variables (constants)
by bellaire (Hermit) on Mar 16, 2009 at 13:44 UTC | |
|
Re: inherit Readonly variables (constants)
by Herkum (Parson) on Mar 16, 2009 at 16:04 UTC | |
|
Re: inherit Readonly variables (constants)
by Anonymous Monk on Mar 16, 2009 at 14:04 UTC | |
by JavaFan (Canon) on Mar 16, 2009 at 14:12 UTC |