in reply to Relative paths in included files

C:\Temp>more t use File::Spec; die File::Spec->dirname( File::Spec->rel2abs(__FILE__) ); sub File::Spec::dirname { my $self = shift; return $self->catpath( ( $self->splitpath(shift) )[ 0, 1 ] ); } __END__ C:\Temp>perl t C:\Temp\ at t line 3. C:\Temp>move t f\a\d\e\a\w\a\ C:\Temp>perl f\a\d\e\a\w\a\t C:\Temp\f\a\d\e\a\w\a\ at f\a\d\e\a\w\a\t line 3. C:\Temp>

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: Relative paths in included files
by a,s5 (Initiate) on Jun 07, 2004 at 00:32 UTC
    That works like a charm. I've tested the heck out of it, and I pronounce it my long sought solution. Thank you so much!
    --Andy