Hi,
You would need a global for this:
file_url =>
Code:
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info ('YourColumn', $tags->{ID});
my ($url) = $file =~ m,/path/to/file/root/(.*),;
return $url;
}
$file is a CGI.pm style filehandle. It behaves like a string which is the full path to the file, or it can be used to pass into open(), close(), as a filehandle.
We'll look at making this simple and built in in the next release.
Cheers,
Alex
--
Gossamer Threads Inc.