The opener was soon cancelled out just four minutes later by another penalty, Australian midfielder and captain, Mile Jedinak, slotting home after Samuel Umtiti handled the ball in the box,[5] and they looked on course to hold one of the pre-tournament favourites until Paul Pogba's lobbed effort confirmed by goal line technology deflected off Australia full-back Aziz Behich and the crossbar to fall inches over the goal-line.
[11] Yoshimar Yotún lashed the ball into Kasper Schmeichel's midriff from 25 yards as Peru began the game and Edison Flores lifted a shot over the crossbar from just outside the box.
André Carrillo surged towards the Denmark box in the 13th minute and cut inside to curl a low drive towards the bottom-left corner, only for Schmeichel to pull off a diving save.
Denmark midfielder William Kvist was taken off on a stretcher after a sustaining a blow to the ribs in a challenge with Jefferson Farfán, and then Christian Cueva was brought down in the penalty area by Yussuf Poulsen.
[12] Adopting a more adventurous approach after the restart, Denmark were rewarded when Christian Eriksen's precise through-ball allowed Poulsen to open the scoring with a low left foot shot.
Substitute Paolo Guerrero, who was only able to play after a Swiss tribunal lifted a 14-month drugs ban, backheeled a chance wide as Denmark held on.
Mark Milligan completed 85 passes in this match - a record for an Australian player in a single game at a World Cup tournament.
Raphaël Varane missed with a header before Pedro Gallese saved with his legs to deny Antoine Griezmann after Olivier Giroud found him with a headed pass.
Paul Pogba slid Giroud into the area and when his shot looped over Gallese via a deflection off Christian Ramos, Kylian Mbappé tapped into the empty net from inside the six-yard box.
Steve Mandanda spilled a long-range Christian Eriksen free-kick before recovering to claim the loose ball ahead of lurking striker Andreas Cornelius.
At the 18th minute, Paolo Guerrero broke into the penalty area, cut back onto his right foot and swung a deep cross for André Carrillo to lash a volley through Jedinak's legs and into the bottom right corner of the net.
Tom Rogic beat three defenders on a run into the penalty area after 26 minutes and saw his shot saved by Pedro Gallese, before Mathew Leckie was denied by an Anderson Santamaría tackle as he slid in on goal.
Jedinak's far-post header was saved by Gallese and Trent Sainsbury shot wide from close range, while substitute Tim Cahill had a volley blocked inside the penalty area.