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.

Webserver Error : Global Symbol

Empfohlene Antworten

Veröffentlicht

Hi Leute

ich bekomm die Fehlermeldung von meinem Webserver:

Global symbol "$spielplanlaenge" requires explicit package name at spielergebnisse_beta.pl line 221.

Global symbol "@spielplan" requires explicit package name at spielergebnisse_beta.pl line 226.

Global symbol "@ergebnisse" requires explicit package name at spielergebnisse_beta.pl line 236.

Global symbol "@ergebniss" requires explicit package name at spielergebnisse_beta.pl line 358.

Mir isch klar, dass es irgendwas mit globalen Variablen zu tun hat bzw. irgendwas mit "my". Vielleicht kann mir jmd. genauer auf die Sprünge helfen. Hab auch schon in ERfahrung gebracht, dass ich irgendwas mit use strict vars machen muss/soll, aber steig da echt nicht ganz durch.

thx

alligator

Wenn du use strict verwendest,.. musst Du jede Variable, Array, Hash vorerst mit my deklarieren bevor Du diesen Variablen Werte zuweist und/oder mit Ihnen arbeitest ...

also im Klartext...

use strict;

$c = 1;

$a = $c + 2;

Falsch!

Richtig währe...

use strict;

my $c = 1;

my $a;

$a = $c + 2;

Sinn der Ganzen Sache ist, ein grösseres Durcheinander mit globalen Variablen zu vermeiden.... so ist man gezwungen alle Variablen an die Sub Programme zu übergeben und "sauber" zu programmieren.

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.