A mere year ago, tech companies were touting new and sometimes over-the-top perks, hoping to lure the high-demand tech worker.

But the kid gloves come off during layoffs, it appears. polled 700 tech workers from entry-level to top management positions. One-third said their layoffs were a complete surprise and one-fourth said they'd been waiting for the news.

Most heard they were laid off from their boss or boss' boss, one-fourth heard from the personnel department or somewhere else, and "a very unlucky few found out from the media and had to locate a manager to confirm the rumor," the survey says.

Most had been with the company between three and 24 months prior to being fired. The majority left the same day they were fired, and one-third got an hour or less to leave. Some had their belongings packed up for them.

About three-fourths lost computer access immediately, but 15 percent were allowed to continue.

More than one-fourth did not get severance, although many of those were with companies that closed down. Forty percent received up to one month's pay.

Half said they weren't offered counseling, legal advice or job placement/interview services; the other half dissed the services they did get, rating them "not helpful at all."