I have a Perl script. If it was called direct from the command line, I want to run sub main.
If it was called using require, I want to do nothing and wait for the caller script to call sub job at it's leisure.
...
Whenever I require a file in ruby or irb I get this error:
LoadError: no such file to load -- (insert any filename).rb
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from /usr/bin/irb1.9.1:12:in `<main>'
It happens even if the file ex...
I've been trying to get a ruby file to require another ruby file and I feel like I'm going crazy. My setup is as follows
Two files in '/raid1/ruby-code/benchmark/'
CommandRunner
Benchmarker
Benchmarker is the main program at this point and wants to require CommandRunner, I've tried a bunch of different things and none of them work....
Alright, I'm having an issue, as many other people are seeming to have, without fix. The issue is, when I try to use require or require_once, it will work fine if the file to be required is in the same subdirectory, but the moment it sees a file outside of their subdirectory, it quits. Here is basically what the file tree looks like:
mai...