Mailinglist Archive: opensuse-programming-de (211 mails)

< Previous Next >
Re: Links aus html-Seite extrahieren
  • From: Werner Schalk <werner_schalk@xxxxxx>
  • Date: Tue, 11 Mar 2003 08:37:40 +0100
  • Message-id: <200303110837.40980.werner_schalk@xxxxxx>
Hi David,

ich habe momentan folgendes Konstrukt (entnommen der
vorhergehenden Mail von Dir):

perl -W -n -i 'input.html' -e 's/href="\([^"]*\)"/\1/g'

Leider scheint der den Quellcode der HTML-Datei als
Code zu interpretieren, da ich folgende Meldungen bekomme
(gekürzt):

Bareword found where operator expected at input.file line 1, near
"<TITLE>Search"
(Missing operator before Search?)
String found where operator expected at input.file line 3, near "<link rel=""
(Might be a runaway multi-line "" string starting on line 1)
(Missing semicolon on previous line?)
Bareword found where operator expected at input.file line 3, near "<link
rel="stylesheet"
(Missing operator before stylesheet?)
Unquoted string "stylesheet" may clash with future reserved word at input.file
line 3.
String found where operator expected at input.file line 3, near "stylesheet"
href=""
Unquoted string "templates" may clash with future reserved word at input.file
line 3.
Unquoted string "css" may clash with future reserved word at input.file line
3.
String found where operator expected at input.file line 3, near "css" type=""
Bareword found where operator expected at input.file line 3, near ""
type="text"
(Missing operator before text?)
Unquoted string "text" may clash with future reserved word at input.file line
3.
Unquoted string "css" may clash with future reserved word at input.file line
3.
String found where operator expected at input.file line 5, near "<style
type=""
(Might be a runaway multi-line "" string starting on line 3)
(Missing semicolon on previous line?)
Bareword found where operator expected at input.file line 5, near "<style
type="text"
(Missing operator before text?)
Unquoted string "text" may clash with future reserved word at input.file line
5.
Unquoted string "css" may clash with future reserved word at input.file line
5.
String found where operator expected at input.file line 13, near "<link rel=""
(Might be a runaway multi-line "" string starting on line 5)
(Missing semicolon on previous line?)
Bareword found where operator expected at input.file line 13, near "<link
rel="shortcut"
(Missing operator before shortcut?)
Bareword found where operator expected at input.file line 13, near ""
href="http"

Was mache ich falsch?

Danke und viele Grüße,
Werner.


< Previous Next >