Prime Minister Julia Gillard escaped unhurt this morning after a protester threw an egg at her as she arrived at the ABC's Perth offices.

The egg whizzed past Ms Gillard as she entered the ABC foyer and hit a female security guard before smashing against a wall.

Ms Gillard appeared unfazed by the incident. Watch the ABC's CCTV footage.

"I did see something flying past," she told ABC Radio afterwards.

"I've met the lady who was coming in who ended up with the egg on the back of a raincoat, fortunately, so she'll be able to wipe it off.

"I did apologise to her because I don't think someone was throwing an egg at her but she ended up copping the egg."

Ms Gillard says people have a right to disagree with her, but throwing eggs in not the answer.

"I don't even know what is was about. I don't even know what they are frustrated about, so if people have got something to say to me what I would obviously prefer is ... a frank conversation," she said.

Police have charged a 55-year-old Perth man with assault after the incident.

Inspector Allan Adams says there was no security breach and police were not caught off guard.

Earlier Ms Gillard was heckled by protesters at a business breakfast at a Perth hotel.

The group was protesting against the Federal Government's policies on asylum seekers and the environment.