beef has asked for the wisdom of the Perl Monks concerning the following question:
heres the 131.klp file#!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>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: does anyone know why this text parser wont work
by lemming (Priest) on Jul 19, 2001 at 12:16 UTC | |
|
Re: does anyone know why this text parser wont work
by davorg (Chancellor) on Jul 19, 2001 at 13:06 UTC | |
|
Re: does anyone know why this text parser wont work
by smitz (Chaplain) on Jul 19, 2001 at 18:48 UTC | |
|
Re: does anyone know why this text parser wont work
by beef (Initiate) on Jul 20, 2001 at 01:02 UTC | |
|
Re: does anyone know why this text parser wont work
by beef (Initiate) on Jul 20, 2001 at 01:04 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |