title: Is there a built in Perl Function for finding duplicate subarrays(exact order) in an array?
body: <p>Lets say the array is (1,2,3,4,5,6,7,8,9),
  Another subarray is (2,3,4)
  Is there a function to check if the subarray pattern(full exact order) exists within array?
  In this case, it would return any indicator(index) that shows it exists.
  Also would need to work for duplicates if there are multiple subarrays existing in the array like (4,2,3,4,2,3,4).
  If it happens to match multiple times for example:
  Array = (2,3,2,3,2,2,3,2)
  Sub Array = (2,3,2)
  Would just return starting index of matches in order: 0,2,5
  Or if it removes, would result in (3,2)</p>
  <p>Edit: Elements don't have to be num</p>