in reply to Get Position of Element in an array

And another idea:
print index(join("",@input),$char);
note: position-counting starts with zero ...

Update Seems the example given by the OP led me to a too simplified solution. Thanks for spotting the limitations, LanX

Replies are listed 'Best First'.
Re^2: Get Position of Element in an array
by LanX (Saint) on Nov 16, 2010 at 13:51 UTC
    thank god perl arrays can only hold one character strings!

    ... ;-D

    Cheers Rolf