![]() |
|
more useful options | |
PerlMonks |
comment on |
( #3333=superdoc: print w/replies, xml ) | Need Help?? |
And what if no one of them matched? (Left as an exercise to the reader) Update: it was a wonderfully neat solution (which is the reason why I posted it!) to another problem!! Not just as neat:
And what if no one of them matched? (Left as an exercise to the reader ;-) But then if you are sure in advance that one and only one element will match, here's a neat concise solution: You can patch it so that it works also if the above conditions are not verified, but won't be just as elegant. (Also left as an exercise to the reader!) <Reveal this spoiler or all in this thread> In reply to Re: changing the position of an element in an array
by blazar
|
|