Earl Weaver, the umpire-baiting, dirt-kicking, tomato-growing manager who led the Orioles to four American League pennants and a world championship, was elected yesterday to the Baseball Hall of Fame.

"I'm elated," said Weaver. "There are so many people to thank -- Brooks and Frank and Boog and Blair and Buford -- so many who made it possible.

"I loved managing those kids. I always thought, 'Let me manage as long as I can, and when I get run out of town, let me become a scout.' "

That never happened.

Weaver will enter Cooperstown with "Foxy" Ned Hanlon, another Orioles manager who guided Baltimore to three straight National League titles in the 1890s; former pitcher Jim Bunning, a 224-game winner; and Negro leagues star Bill Foster. Induction ceremonies are Aug. 4.

Hall of Fame officials said it was the first time two managers representing the same city were elected together.

"It's a feather in Baltimore's cap," said Hank Peters, for- mer Orioles general manager and a member of the selection committee. "There wasn't much doubt that Earl deserved to go. And Hanlon was much the same innovative-type manager.

"Both were ahead of their times in the way they did things. It's fitting that they should go in in tandem."

Weaver, 65, who was playing golf near his Florida home when he got the news, refused to leave the course until he'd finished the round nearly three hours later.

"Competition is competition," he said. "That's how I get my thrills.

"When I heard the news, my knees got weak and I could hardly hold the golf club."

He bogeyed the hole, but won the match.

Weaver's peers and former players toasted the vote.

"He won almost 1,500 games, he had one losing season and he was never fired," said former Detroit manager Sparky Anderson, who was let go by the Tigers last year. "Earl walked away on his own, and a manager should cherish that more than anything else."

Weaver's lone world championship, in 1970, came at Anderson's expense, when the Orioles defeated Cincinnati's Big Red Machine, four games to one.

"Earl was Earl," Anderson said. "He never tried to be Casey Stengel or Walter Alston. He was a great leader because he was fearless.

"So many people in life are afraid. Earl stood his ground on everything. He wasn't always right, but he never ran. What more can you ask of a guy?"

Weaver managed the Orioles from 1968 to 1982 and was coaxed out of retirement to lead them again in 1985 and 1986. In 17 years, his teams won 1,480 games and lost 1,060 for a winning percentage of .583 -- fifth all-time among managers of the modern era.

"The vote is a validation of how good he really was," said Orioles Hall of Famer Jim Palmer. "It's like a USDA meat approval. He's just gone from 'choice' to 'prime' -- though I never really thought of Earl Weaver as a tenderloin."