From: Dave Bass Date: 2008-05-31T20:33:52+09:00 Subject: Re: splitting help needed 7stud -- wrote: > Ahh, but the governing principle in the Ruby community is to make a Ruby > script look as much like a Perl script as possible--efficiency be > damned. So who in their right mind would pass up a chance to use a > hieroglyphic regex like: /\|/ in their code. That's art. Larry Wall (Perl supremo) has called this sort of thing LTS: leaning toothpick syndrome. But Perl's syntax allows you to write a regexp as m(\|), which is a bit clearer. Or you can use the quotemeta() function to add a backslash for you. But this is Ruby, not Perl! :-D Coming from 10 years of Perl coding, I wish Ruby were *less* Perl-like, as it can get confusing, especially when you're working in both languages at the same time. -- Posted via http://www.ruby-forum.com/.