Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

url aus txt mit perl!

Empfohlene Antworten

Veröffentlicht

Hallo...

Mein Problem ist wie follgt. ich will eine URL aus einer txt datei ins html dokument mit intregieren.

wie mus ich die Url abspeichern so das er sie dann auch als html Tag wieder ausgiebt.


txt.datei:

<a href="datei.html">Link</a>


perl datei:

open (FILE,"$dir") || die("Can't open file\n");


@lines=<FILE>;

close(FILE);


print $lines[0];


isn bissen doof erklärt, ich weis. :confused:

gruß empire

versuch dann mal das:

Wenn du nur eine Zeile in der Datei hast, dann verwende den Befehl:

split(regulärer Ausdruck, String/Datei)

mit dem Befehl split arbeite ich ja auch schon.

er scheint aber beim abspeichern in einer Variabel ab dem Tag alles weitere zu ignorieren.

hast noch eine idee.

danke

empire

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.