heres the code parse.pl run as parse.pl?131
#!usr/bin/perl $data_file= "data\/" . $ENV{QUERY_STRING} . ".klp"; open(DATA, $data_file) || die("Could not open file! Please notify the +Webmaster by clicking the back the back button in your browser and ty +ping 001\~$data_file as the error code."); @rawdata=<DATA>; close(DATA); chop (@rawdata); ($title,$genre,$date,$info,$author,$emailaddy,$aol,$icq)=split(/\\ns/, +@rawdata) || die("$data_file is not formatted correctly. Please notif +y the webmaster by clicking back in your browser and place 002\~$data +_file as the error code."); # %final = ('author', '', 'title', '', 'data', ''); print "Content-type: text/html\n\n"; print "<HTML><BODY>"; print "title $title"; print "genre $genre"; print "date $date"; print "info $info"; print "author $author"; print "emailaddy $emailaddy"; print "aol $aol"; print "icq $icq"; print "<\/body><\/html>";
heres the 131.klp file
this is the fake title
\ns
greeting
\ns
january 1492 or something
\ns
welcome to the site
\ns
beef-
\ns
thisis\@fake.com
\ns
thisisfake
\ns
111222333444

In reply to does anyone know why this text parser wont work by beef

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.