A loader opr was trying to loosen a guard rail pipe by using a loader to lift the rail. The rail pipe broke due to the force being applied and flew toward emp. The pipe hit emp's hard hat and knocked him to the ground. Emp had laceration from lining of hard hat and was sent to doctor for eval. 3 staples were applied to laceration.