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:

use Data::Dump; dd \@vlinks;
I would get an error 500 message. I omitted it and everything worked great.

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
      Maybe the dump gets printed before the header?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

        Yes, that's a good point! I initially assumed michael.kitchen was putting the dd somewhere in the middle of the code like I did in my example, but of course you're right that if it happens before the header, that'll be the problem.