Hi -- On Tue, 6 Nov 2007, Mario Ruiz wrote: > I'm trying to pass to a method all the parameters in a global variable: > > $allparameters="dos","ie","4","alone","","8" > > ... > > myclass.mymethod($allparameters) > > > I'm doing that because I'm using this parameters a lot. > The error is: wrong number of arguments (1 for 6) (ArgumentError) > > I tried also: $allparameters=["dos","ie","4","alone","","8"] You need to "unarray" the array, with the unary *: myclass.mymethod(*$allparameters) David -- Upcoming training by David A. Black/Ruby Power and Light, LLC: * Advancing With Rails, Edison, NJ, November 6-9 * Advancing With Rails, Berlin, Germany, November 19-22 * Intro to Rails, London, UK, December 3-6 (by Skills Matter) See http://www.rubypal.com for details!