in reply to Re^3: split the text file to multiple arrays
in thread split the text file to multiple arrays

This week I am learning a lot from Huck and poj for data reference, hash of array and html presentation. I really appreciate it. The page looks fantastic. Both of you deserve a Zen Hug from me. However I have a three small questions: 1. Is there any way to get rid of the quotation mark, $ and ? in $key before displaying using reg expression I have tried $key =~ s/\"$/ / but cannot get rid of ?" on the right side 2. I understand that we can only sort the hash $key in alphabet order, but is there any way to list the title in the order that we want in html page. 3. I like to learn how to use perl modules, for example HTML-Table,HTML-Template v.....Where should I start?

Nirvana is Now or Never

Replies are listed 'Best First'.
Re^5: split the text file to multiple arrays
by huck (Prior) on Jul 07, 2017 at 01:02 UTC

    Is there any way to get rid of the quotation mark, $ and ? in $key

    $key=~s/[\"\$\?]//g;

    is there any way to list the title in the order that we want

    Remember push @tables,$line;. that made an array in the order that the tables came in. This would print the tables in that order

    foreach my $key (@tables) {
    If you had an array
    my @order=('"$Persons Absences?"','"$Replacement Persons?"','"$Room Ch +anges?"'); foreach my $key (@order) {
    It would print them in that order.

    Where should I start?

    I like to start by googling for examples of other people already using them and reading that code

      Any one has the idea why I put the script and the css sheet to the same folder it will apply the style to the web page, but if I leave the script in different folder, it will not apply css style. And if I remote log in to the server as the administrator to open the html page. It shows all styles, but if I did not remote log in as administrator it will not show all the css styles on page???

       code
      Nirvana is Now or Never

        How did you load the css html file. For simple css i just tend to put it inline.