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.

Noch ein Prob.

Empfohlene Antworten

Veröffentlicht

Gitb es in Perl ein Funktion in der Mann z.B. ein Array abspeichern kann?

In dem SCript das ich schreibe hab ich nämlich gerade eine txt Datei verändert und will das jetzt so speichern.

Kann mir da jemand helfen ? :confused:

ERklär mal genauer.

Willst du ein Array in eine *.txt speichern oder was meinst du?

Falls du das meinst einfach:

open(TXTDATEI, "irgendeineDatei.txt");

foreach $i (@DeinArray)

{

print TXTDATEI "$i";

}

close(TXTDATEI);

Meintest du das so ?

Falls nicht einfach nochmal Frage :D:D

cu

alligator

#!/usr/bin/perl -w

use strict;

use vars qw($Eint @Liste);

print "Geben sie den zu loeschenden Eintrag ein: ";

chomp($Eint = <STDIN> );

open (DATEI, "d:/Aufgaben/loschv.txt") || die "Kann die Datei nich oeffnen: $!";

while (<DATEI> ) {

chomp;

print "Vergleiche '$Eint' mit '$_' \n";

if ($Eint eq $_ ) {

print "Eingabe wurde gefunden";

} else {

print "Der Begriff wurde nicht in der Datei gefunden \n";

push(@Liste,$_);

print "In den Array @Liste";

}

}

??????????????????????????

close DATEI;

Also soweit bin ich schon.

Ich hab eine txt Datei geöffnet durchsucht und alles was nicht mit der Suchbedingung übereinstimmt soll wieder in die Datei übertragen werden.

So das dann die Übereinstimmungen verlorengehen.

Hoffe das ihr mir helfen könnt.

Trotzdem danke.

:)

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.