Coherent perfect absorption refers to the interferometric enhancement of absorption in a partially lossy medium upto 100%. This can be achieved without modifying the absorbing medium itself, instead of engineering its photonic environment. Ion-doped fibers are one of the most technologically relevant absorbing materials in optics, which are widely employed in fiber amplifiers and lasers. Realizing complete optical absorption of an incident field in short-length moderately-doped fibers remains a challenge for the cost-effective design of compact fiber lasers. Here, we exploit the concept of coherent perfect absorption to overcome this challenge, whereby two appropriately designed fiber Bragg gratings define a short-length erbium-doped-fiber ...