The accused man appeared in Perth Magistrates Court on Tuesday.
He was refused bail and remanded in custody.
He is due to appear in Stirling Gardens Magistrates Court later this month.
Police said yesterday they had interviewed a man and woman about the incident.
However, police said they believe they were not involved in the alleged shooting.
Anyone with information about the incident or who saw or heard anything suspicious, in the Mayfair Street area early on Monday morning is asked to call Crime Stoppers on 1800 333 000.