C
Chris Morris
irb(main):001:0> 'a,b'.split(',')
=> ["a", "b"]
irb(main):004:0> 'a => b'.split(' => ')
(irb):4: warning: string pattern instead of regexp; metacharacters
no longer eff
ective
=> ["a", "b"]
Why do I get a warning on the second split call?
=> ["a", "b"]
irb(main):004:0> 'a => b'.split(' => ')
(irb):4: warning: string pattern instead of regexp; metacharacters
no longer eff
ective
=> ["a", "b"]
Why do I get a warning on the second split call?