in reply to Putting an elemnt in first position in array.

If you know the index ($ix) of the element you want to move to the first position:
@array[0..$ix] = @array[$ix, 0..$ix-1]
Otherwise, and if you are sure the array contains the given element:
my $element = 'dog'; my $last = $element; for (@array) { ($_, $last) = ($last, $_); last if $last eq $element; }