#!/usr/bin/perl # # Create WML index of directory # # Developed by Lubomir Host 'rajo' # Copyright (c) 2005 Platon SDG, http://platon.sk/ # Licensed under terms of GNU General Public License. # All rights reserved. # # Changelog: # 2005-03-29 - created # # $Platon$ use strict; use CGI::Lite; # here is directory with your files my $subdir = "data"; chdir $subdir or die "Can't go to directory '$subdir': $!"; print "Content-Type: text/vnd.wap.wml; charset=utf-8\r\n"; print <

Refresh
EOF ; my @files = glob "*"; foreach my $file (@files) { #print "file = '$file'\n"; print "', $file, "
\n"; } print < EOF