From: Kent Dahl Date: 2003-04-18T16:31:41+09:00 Subject: Re: newbie question Emmanuel Touzery wrote: > But it fails, apparently because the parameter for require must be CONSTANT: > > test.rb:4:in `require': ./myplugins/poptv.rb:1: class/module name must be > CONSTANT (SyntaxError) > from test.rb:4 > from test.rb:1:in `each' > from test.rb:1 > > require ('myplugins/' + plugin).freeze does the same. > > any idea? shoud I use something else than 'require'? some form of eval? Check out line 1 in poptv.rb. My bet is that you have started a class or module name with a lowercase character. It must be a constant, which means it must begin with an uppercase character. You don't have any problem with require, it just pops up in the backtrace because it was what prompted the offending file to be parsed. -- (\[ Kent Dahl ]/)_ _~_ __[ http://www.stud.ntnu.no/~kentda/ ]___/~ ))\_student_/(( \__d L b__/ NTNU - graduate engineering - 5. year ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)