An array reference is actually a pointer(as we would have said in C++)
that points to the starting memoery location of the array?! And de-reference means to point to the value of memory location instead of the memory location itself?
Also this:
my @titlelist;
open FILE, "<$ENV{'DOCUMENT_ROOT'}/data/vault/titlelist.txt" or die
$!;
@titlelist = <FILE>;
close FILE;
print br() x 3;
print start_form( action=>'/cgi-bin/admin.pl' );
print table( {class=>'user_form'},
Tr( td( 'Πές μου τι _
+2;α ήθελες:' ),
td( popup_menu( -name=>'title' -values=>\@titlelist ))),
Tr( td( 'Κάτι άλλο π
+;ου θα ήθελες ν
+;α σχολιάσεις?
+' ),
td( textarea( -name=>'remark', -rows=>4, -columns=>25 ))),
Tr( td( 'Το τηλέφων
+ο επικοινωνί&#
+945;ς σου για επι&#
+946;εβαίωση
είναι:' ), td( textfield( -name=>'phone' ))
+),
Tr( td( a( {href=>'/cgi-bin/show.pl?name=showbook'},
font( {size=>3, color=>'yellow'}, 'Εμφάν_
+3;ση!' ))),
td( submit( 'Αποστολή
+;!' )))
);
print hidden(-name=>'date', -value=>$date);
print hidden(-name=>'host', -value=>$host);
print end_form();
Although @titlelist is filled with all entries from titlelist.txt
file(one entry per line), when it gets printed with popup_menu it
displays nothing at all!!