Novak Djokovic suffered an injury scare ahead of his Australian Open defence when a railing fell on his leg while signing autographs for supporters.
Djokovic, 25, limped away from court after his 6-3 6-4 Hopman Cup singles victory for Serbia over Italy's representative Andreas Seppi.
He recovered to partner Ana Ivanovic in a doubles win that saw his nation triumph 2-1 in the warm-up event.
Play begins at the Australian Open in Melbourne on 14 January.
The incident, in which a crowd barrier collapsed on to the world number one and knocked over a number of fans, capped a hectic few days in which he arrived in Perth less than 24 hours before he stepped on to court against Seppi.
Djokovic said he had suffered no damage as a result of the incident which would have heartened organisers of the upcoming first Grand Slam of the season after last year's beaten finalist Rafael Nadal announced he would not be taking part
"It was a bit of a shock and I'm glad that the children involved are OK. I am fine," said Djokovic.
"I arrived quite late last night and didn't get long hours of sleep and felt this morning like I'm dream-walking. But as the match went on I was managing to get my rhythm. I broke the ice after the first set and felt a little bit better."
A fatigued Djokovic got off to a perfect start in his singles match at the international mixed teams competition, breaking to lead 2-0 in the first set. But he had to defend four break points at 4-3 in the second to complete his win.
Seppi and 2010 French Open champion Francesca Schiavone, who had earlier been beaten by Ivanovic 6-0 6-4, bounced back to win the dead rubber mixed doubles match 7-6 (7-4) 6-4.
Serbia are one of eight countries competing in the round-robin tournament which concludes on 5 January.