In our aXML document we want to put something like :

Files


/home/user/Desktop/ #### my @filelist = glob($data); $result = join('
',@filelist); #N.B I haven't tested the above code, it's for example/illustration purposes only. ##
## lets say we want a hyperlink for each file : [link to="filename"]filename[/link]
or a hyperlink and a delete link : [link to="filename"]filename[/link] - [link action="deletefile" filename="filename"]Delete[/link]
##
## my @filelist = glob($command_args->{'dir'}); my @results; my $mask; map { $mask = $data; $mask =~ s@filename@$_@gs; push (@results, $mask); } @filelist; $result = join('',@results); ####
Filename : filename [link to="filename"]Show[/link] [link action="deletefile" filename="filename"]Delete[/link] [link action="archivefile" filename="filename"]Add to archive[/link]
##
## ... ... #### common/dirmask1.aXML