Whoever attempts to commit larceny by doing any act toward the commission of the offense, but fails in its perpetration, shall, unless otherwise provided, suffer the same punishment which might have been inflicted if the attempted offense had been committed.
R.I. Gen. Laws § 11-41-6