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.

PERL problem

Empfohlene Antworten

Veröffentlicht

Hi Leute ich hab da ein kleines Problem bei dem ich einfach net weiterkomm.

ich will mit einem kleinen Perl programm von HTML seiten, (die ich lokal auf meinen Rechner habe) einen gewissen bereich rausschneiden und in einer anderen (neuen) HTML seite einfügen

so, das ist mein Code:

aber er funzt net!

kann mir da jemand helfen?

#!/usr/bin/perl

use strict;

use warnings;

my @inhalt;

my $zeile;

my $teilstring;

my $test;

my $i;

my $a;

my @verzeichnis;

my $element;

my $test2;

my $dir;

my $anzahl;

my $pfad;

$pfad =".";

open(OUTFILE, $pfad);

@inhalt=<OUTFILE>;

print "TEST";

foreach $element (@inhalt){

if($test = substr($element , -4) == "html" and $test2 = substr($element , 0, 1) == "k"){

print "$element\n";

@inhalt =<OUTFILE>;

print "TEST2";

}

$anzahl = @inhalt; #// Anzahl Elemente von @inhalt

@inhalt = @inhalt[32..($anzahl-19)];

open(LOG, ">>test.html") or die "FEHLER: Datei kann nicht geschrieben werden...";

@inhalt=<LOG>;

print @inhalt;

print <LOG>;

close LOG;

close OUTFILE;

}

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.