Hard to say, if you did a copy in the filesystem then everything should be
ok. The first is a warning from ruby, if you're not getting that in your run
with x.rb, then likely the file contents have changed - you've got a space
before a method call. Have the contents of the file changed? Is it in the
same directory? It sounds like a simple error but without more details, I
can't tell.

-Charley

On 5/15/07, Ken <[EMAIL PROTECTED]> wrote:

I have a file lets call it x.rb.  I included my common file with my login
function and it works fine.  I copied x.rb and renamed it y.rb.  I ran
y.rb and got these 2 errors:

warning: don't put space before argument parentheses

and

undefined local variable or method `sURL' for main:Object

I have sURL defined:

# set login variables
  sURL= "x"
  sUserName = "x"
  sPass = "x"

I call my Login function from x.rb and y.rb as follows:

Login (sURL, sUserName, sPass)

I dont understand why the script runs fine when i called it from x but
when I call it from y i get the above 2 errors.  Does anybody have any ideas
why I am having this problem?  I also tried renaming x and then running it
as the new name and I still got the errors.  The one with the space before
the parentheses is puzzling because it didnt have a problem with that when i
originally ran the script.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to