S
suresh
Hi
I am a newbie to ruby and when i tried to split a string at tab
positions, it didnt work. Could you please tell me where I am going
wrong? Code is pasted.
#!/usr/bin/ruby1.9
s = "a b"
ss = s.split('\t')
puts ss[0]
It just prints the entire line without splitting...
suresh
I am a newbie to ruby and when i tried to split a string at tab
positions, it didnt work. Could you please tell me where I am going
wrong? Code is pasted.
#!/usr/bin/ruby1.9
s = "a b"
ss = s.split('\t')
puts ss[0]
It just prints the entire line without splitting...
suresh