in reply to Re: Sorting Text File for HTML Output (updated x2)
in thread Sorting Text File for HTML Output
Thanks haukex!!!! Really, thanks!!! You gave a lot of explanations and I grasped some of them. Most of my information comes from an old book and realize that much of my code could be out of date with better ways of coding things. Thanks for the following code:
@row{qw/title title2 pages author/} = split /:/, $line, 4;
More user friendly. :)
The only thing I couldn't get to work was:
I would get an error 500 message. I omitted it and everything worked great.use Data::Dump; dd \@vlinks;
Just to fill in some missing information....
->title could include any character except a colon
->title2 acted as a filename so I could reference artwork
->pages number of pages as a number (assumption correct)
->author could include any character except a colon
The data is added to txt file by way of another cgi program which has all the substitutions I need.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sorting Text File for HTML Output
by haukex (Archbishop) on Sep 15, 2017 at 07:43 UTC | |
by choroba (Cardinal) on Sep 15, 2017 at 07:58 UTC | |
by haukex (Archbishop) on Sep 15, 2017 at 14:28 UTC |