On 2007-03-25, David M. [email protected] wrote:
?
I don’t follow…
$ irb
irb(main):001:0> “\nabc\n” =~ /^abc$/
=> 1
irb(main):002:0> “\nabc\n” =~ /\Aabc\z/
=> nil
irb(main):003:0>
In Ruby ^, $ match the beginning and end of a line, whereas \A, \z
match the beginning and end of the whole string. This is not the same
thing for multiline strings.
In Perl, ^, $, \A, \z behave as Ruby’s \A, \z, unless you specify the
m modifier to your regexp, in which case they all behave as they do in
Ruby.
From “perldoc perlre”:
m Treat string as multiple lines. That is, change "^" and "$"
from matching the start or end of the string to matching the
start or end of any line anywhere within the string.
Regards,
Jeremy H.
On 3/24/07, _why [email protected] wrote:
On Sat, Mar 24, 2007 at 11:40:05PM +0900, Michael B. wrote:
I’ve been using Ruby on-and-off for about 4 weeks now and love it.
However, some of the naming consistencies really bug me. The ones that
bug me the most are the “print”, “puts” and “putc”.
These are very subtle things, but you make some good points. I
think “print” would be much friendlier if swapped with “puts.” Especially
since puts is so filthy and derogatory to yiddish folk.
Isn’t that putz?
Oy, gevault!
–
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
uhoh, I smell a new dialect of Ruby…
Ryiddish,
or
Riddish?
or
Rubish?
futz
On 3/27/07, John J. [email protected] wrote:
uhoh, I smell a new dialect of Ruby…
Ryiddish,
or
Riddish?
or
Rubish?
futz
I recently came across an experimental language which attempted to
combine ruby with static type inference from Haskell.
The author called it ‘merd.’
Je ne sais pas s’il exprimait son avis de la valeur de l’idée même.
–
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/