The LOOP seems to work ok. I just keep getting nothing with the print statement print "$text_link\n";.
I created a sub'fix_file' that would fix each element' $file ' of the array' @filenames ' and put the data into a $scalar' $text_link '
Since each of these are file names formated the same way. They consist of this file format' xxyyzz.shtml'
I would like to split each element at the dot .
The file extension shtml will not be used.
The first 6 chars of each element go into $text_link.
Thanks You s-)
--------- LOOP ---------------
foreach my $file (@filenames) {
next if $file eq'.';
next if $file eq'..';
&fix_file;
print "<A HREF=../../ppc/library/minutes_archive/$year/$file>$text_link $year</A>\n";
}
--------- sub fix_file -----------------
sub fix_file{
$file_text=($text_link , $ext) = split(/./ ,$file);
print "$text_link\n";
}
#fix_file
In the begining
Let us first assume that there was nothing to begin with.
I created a sub'fix_file' that would fix each element' $file ' of the array' @filenames ' and put the data into a $scalar' $text_link '
Since each of these are file names formated the same way. They consist of this file format' xxyyzz.shtml'
I would like to split each element at the dot .
The file extension shtml will not be used.
The first 6 chars of each element go into $text_link.
Thanks You s-)
--------- LOOP ---------------
foreach my $file (@filenames) {
next if $file eq'.';
next if $file eq'..';
&fix_file;
print "<A HREF=../../ppc/library/minutes_archive/$year/$file>$text_link $year</A>\n";
}
--------- sub fix_file -----------------
sub fix_file{
$file_text=($text_link , $ext) = split(/./ ,$file);
print "$text_link\n";
}
#fix_file
In the begining
Let us first assume that there was nothing to begin with.