in reply to Re: How to eliminate warning message on hash value?
in thread How to eliminate warning message on hash value?
Update: fixed line wrap as per Ikegami's suggestion.
line length settings are different in my normal editor than PM. When I do complex multi-part if's requiring more than one line, I do it like below with the conditions on top of each other and the connecting "or" or "and" to the left.
instead of:if ( defined($$keyptr) ) { my $datapos = $RSubtree{$curuser}{$$keyptr}; if ( defined($datapos) #update and GetDataRecord( $db, $keyptr, $dataptr, $datapos ) ) { flock( $db->{btree}, LOCK_UN ); return ""; } }
if ( defined($$keyptr) ) { my $datapos = $RSubtree{$curuser}{$$keyptr}; if ( defined($datapos) ) { if ( GetDataRecord( $db, $keyptr, $dataptr, $datapos ) ) { flock( $$db{btree}, LOCK_UN ); return ""; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to eliminate warning message on hash value?
by ikegami (Patriarch) on Dec 20, 2011 at 00:43 UTC | |
by Marshall (Canon) on Dec 20, 2011 at 05:23 UTC | |
by ikegami (Patriarch) on Dec 20, 2011 at 06:04 UTC | |
by Marshall (Canon) on Dec 28, 2011 at 00:07 UTC | |
by ikegami (Patriarch) on Dec 31, 2011 at 07:40 UTC | |
|