spx2 has asked for the wisdom of the Perl Monks concerning the following question:
sometimes we have some big expressions that get some members of an object like tree->ancestor->son->sibbling->...->bla->bla its annoying to always have to do like
is there a way of expressing something like:if( ( tree->ancestor->son->sibbling->...->bla->bla eq "john") or ( tree->ancestor->son->sibbling->...->bla->bla eq "Mary") )
it would be very helpfulif ( expression is_in (val1,val2,val3) )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: a natural way of expressing things
by FunkyMonk (Bishop) on Jul 08, 2007 at 00:22 UTC | |
by johngg (Canon) on Jul 08, 2007 at 16:55 UTC | |
by FunkyMonk (Bishop) on Jul 08, 2007 at 17:58 UTC | |
|
Re: a natural way of expressing things
by Limbic~Region (Chancellor) on Jul 08, 2007 at 00:16 UTC | |
by Anno (Deacon) on Jul 09, 2007 at 11:45 UTC | |
|
Re: a natural way of expressing things
by GrandFather (Saint) on Jul 08, 2007 at 00:22 UTC |