[Gambas-user] Another possible change...
    Nelson Ferraz 
    nferraz at ...184...
       
    Sun Dec 14 22:45:41 CET 2003
    
    
  
Fabien Bodard wrote:
>>Using Split and Join methods, we could reverse a sentence word by word:
>>
>>newString = myString.Split(/\s/).Reverse().Join(' ')
> 
> Hummm ... I don't really understand this line... Do i must understand dots as 
> Pipe ?
Each dot is a method invocation, but we could say they act like pipes. 
(I don't know if this actually works in Gambas; I borrowed the idea from 
Ruby)
In this context, Split is reversing an array, not a string.
-- 
[]s
Nelson
________________________________________________________________
Nelson Ferraz
GNU BIS: http://www.gnubis.com.br
PhPerl:  http://www.phperl.com
    
    
More information about the User
mailing list