#perl - Mon 9 Apr 2007 between 21:10 and 21:20



jsoftwDamn perl.
Such a bitch sometimes.
Some of the simplest things just seem like a mission in perl
joshSo, to clarify, you're trying to load /path/to/apache_vhost.pm, and you did
unshift @INC, "/path/to";
jsoftwYes
joshrequire "apache_vhost.pm";
?
jsoftwyep
joshTry do '/path/to/apache_vhost.pm';
jsoftwhmm.
Chris62vwjust the opposite. some of the most complex things are easy in perl
if you know perl, it's all easy
joshPerl makes easy things easy, and difficult things possible - in general.
No language is perfect.
Chris62vwyep
jsoftwjosh: nope
Chris62vw: I know complex things can be easy, but why arnt easy things esy
joshDidn't work? What OS are you running on?
bpalmerperl -is- perfect, but it's dealing with an imperfect world
jsoftwjosh: FreeBSD
perl is perfect. lol right.
joshWorks just fine for me (Linux amd64).
jsoftwThats super.
joshBoth do and require, with an absolute path.
No idea what the problem might be.
jsoftw:(
joshHow is it failing?
jsoftwIt is saying that apache_vhost.pm cant be found
joshSpecific message, please.
jsoftwand lists the contents of @INC
joshUse pastebin if it's long.
pasteling"jsoftw" at 60.234.135.124 pasted "error msg." (2 lines, 335B) at http://sial.org/pbot/24103
joshAre 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: ...
jsoftwI was using apache_vhost.pm, but the same shit happens either way, if I require the full path or not.
joshAre you absolutely sure you're specifying the full path *correctly*?
jsoftwYes.
ScribbleJDid you try "do"?
jsoftwYes.

Page: 4 11 18 25 32 39 46 53 60 

IrcArchive