| jsoftw | Damn perl. Such a bitch sometimes. Some of the simplest things just seem like a mission in perl |
| josh | So, to clarify, you're trying to load /path/to/apache_vhost.pm, and you did unshift @INC, "/path/to"; |
| jsoftw | Yes |
| josh | require "apache_vhost.pm"; ? |
| jsoftw | yep |
| josh | Try do '/path/to/apache_vhost.pm'; |
| jsoftw | hmm. |
| Chris62vw | just the opposite. some of the most complex things are easy in perl if you know perl, it's all easy |
| josh | Perl makes easy things easy, and difficult things possible - in general. No language is perfect. |
| Chris62vw | yep |
| jsoftw | josh: nope Chris62vw: I know complex things can be easy, but why arnt easy things esy |
| josh | Didn't work? What OS are you running on? |
| bpalmer | perl -is- perfect, but it's dealing with an imperfect world |
| jsoftw | josh: FreeBSD perl is perfect. lol right. |
| josh | Works just fine for me (Linux amd64). |
| jsoftw | Thats super. |
| josh | Both do and require, with an absolute path. No idea what the problem might be. |
| jsoftw | :( |
| josh | How is it failing? |
| jsoftw | It is saying that apache_vhost.pm cant be found |
| josh | Specific message, please. |
| jsoftw | and lists the contents of @INC |
| josh | Use pastebin if it's long. |
| pasteling | "jsoftw" at 60.234.135.124 pasted "error msg." (2 lines, 335B) at http://sial.org/pbot/24103 |
| josh | Are you sure you're requiring the full path? If I require "/foo/bar/baz.pl", the error message starts Can't locate /foo/bar/baz.pl in @INC (@INC contains: ... |
| jsoftw | I was using apache_vhost.pm, but the same shit happens either way, if I require the full path or not. |
| josh | Are you absolutely sure you're specifying the full path *correctly*? |
| jsoftw | Yes. |
| ScribbleJ | Did you try "do"? |
| jsoftw | Yes. |