Problems? Is your data what you think it is? | |
PerlMonks |
Re: Perl Destroys Interview Questionby Abigail-II (Bishop) |
on Jan 13, 2004 at 16:59 UTC ( [id://321034]=note: print w/replies, xml ) | Need Help?? |
That just depends on how a word is defined. Which the OP
didn't. And considering the suggestions how to fix the OP's
solution (split with no arguments/-a without a -F), I wasn't
the only one taking the not uncommon "non-whitespace" definition.
But I'd like to see the version you would write during a job interview. Make sure you take into account punctuation, Unicode and words like O'Reilly, and home-brew. Abigail
In Section
Meditations
|
|