Hi guys,
I am a beginner in PERL. Please help me with this small problem.
I need to find out one specific element in an array and extract the previous element to the first element.
Example: @array = {"a", "b", "c", "d"}
If I am searching "c", then I want to extract "b".
How to know the position of an element in an array?
Thanks,
Tracy