salve, così com è e con queste veriabili non mi cerca nulla...codice:my $query="www.google.com/search?hl=en&ie=UTF-8&q="; $query.=$str[(rand(scalar(@str)))]; $query.="&num=$n&start=$s"; my @lst=(); my $page = http_query($query); while ($page =~ m/<a class=l href=\"?http:\/\/([^>\"]+)\"?>/g){ if ($1 !~ m/google|cache|translate/){ push (@lst,$1); } } return (@lst); }
se lo modifico così:
dite che può andare? l unica cosa che non penso vada bene è l uso di queste variabili che poi non trova... : ($querystring[$A])).$acodice:my $query="www.google.com/search?hl=en&ie=UTF-8&q=".str_replace("%20","+",urlencode($querystring[$A])).$a; $query.=$str_replace[(rand(scalar(@str)))]; $query.="&filter=0&num=100&meta=$n&start=$s"; my @lst=(); my $page = http_query($query); while ($page =~ m/<a class=l href=\"?http:\/\/([^>\"]+)\"?>/g){ if ($1 !~ m/google|cache|translate/){ push (@lst,$1); } } return (@lst); }
chi mi da una mano a capire perchè non cerca nulla?
grazie

Rispondi quotando