OpenMake Meister

getAbsolute, getAbsolute($anchor_dir)

This method returns a scalar string that contains the absolute path of each individual file with the absolute path separated by the operating system's path delimiter. Files that exist as relative are made absolute according to an 'anchor'.

 

Example:

 

use Openmake::FileList;

$fl = Openmake::FileList->new(qw( file.c file.o /usr/include/stdio.h );

print $fl->getAbsolute( '/home/sean/work');

 

executed on a Unix machine, prints out:

 

"/home/sean/work/file.c:/home/sean/work/file.o:/usr/include/stdio.h"