I have written some of the funcions in a file . The filename is test.rb
test.rb has only the following functions .
puts “This is Hai”
def hellow puts "This is Hellow" end
In check.rb I have required test.rb file . Then I used below hai method.
It works .
The check.rb file has
When I running this program in command line it works . But I am calling
check.rb program from perl using system call . Some times it works fine
. Some time It doesn’t work . I got some error in my code . The Error
is ’ Wrong no of argument error’ .
I am running above code from perl . To check the problem , I am
redirecting the stderr to a file . I got Wrong ‘no of argument error’ .
check.rb is an executable file .
I think that we should not require a file without module . I
request you t share your experience .