Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- split, no repeat- Regular expression
August 31, 2005, 6:45 am
rate this thread
Re: split, no repeat- Regular expression
You are missing a slash character there.
Please post _actual_ code!
You should include the $! variable in your die() message.
You should not have quotes around a lone variable:
perldoc -q vars
What's wrong with always quoting "$vars"?
That replaces _runs_ of whitespace characters (any of: line feed,
carriage return, tab, formfeed, space) with a tab and a plus sign.
The 2nd part of s/// is a *string*, not a regular expression.
To TRansliterate space characters to tab characters:
Tad McClellan SGML consulting
email@example.com Perl programming
Fort Worth, Texas