Thread grep <br> in text
(26 answers)
Opened by Hunnenkoenig at 2009-11-20 12:34
Ok, soweit ich deine erklärung verstanden habe, habe ich meinen code damit ersetzt:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 #! /usr/bin/perl # Autofetch Info use strict; use warnings; use CGI; my $cgi = CGI->new; my $currentSoftware = $cgi->param('id'); my $coCode = $cgi->param('country'); my $store = 143441; my $flag = 0; my $counter = 0; print $cgi->header; sub fetchReviews() { my $doit = qq{curl -s -A "iTunes/4.2 (Macintosh; U; PPC Mac OS X 10.2" -H "X-Apple-Store-Front: $store-1" 'http://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=$currentSoftware'}; my $riz = `$doit`; my @rizray = split('\n', $riz); my @rizray = grep( /<TextView topInset="0" leftInset="0" rightInset="0" styleSet="normal11"><SetFontStyle normalStyle="descriptionTextColor">/, @rizray); foreach my $item (@rizray) { print "$item"; } } DAs hier gibt eine weisse seite zurück mit nix im quellcode. Also der script tut nix. Wie auch, wenn fetchreview nicht deklariert wird. -- Ich will nicht, dass hier jemand einen kompletten script schreibt. Das habe ich schon längst aufgegeben. Ich bin mit einem script dahergekommen und um rat gefragt, warum nicht der kompletter text angezeigt wird. Wenn du das als bitte um einen kompletten script verstehst, dann hast DU ein kommunikationsproblem. Ich habe mich mit perl auch beschäftigt. Mein script würde das selbe machen, was der andere in meinem anderen topic macht. Wie du siehst sind die zwei scripte völlig verschieden. Also du kannst nicht behaupten, ich würde nur herumsitzen und auf jemanden warten, der mir eine schälmaschine macht. Und den script habe ich alleine zusammengebastelt, auch wenn der angeblich so schlecht ist. |