vieleicht eine dumme Frage aber wie erzeuge ich einen Code-Tag.
Von NMB habe ich folgende Fehlermeldung:
linux:/home/reinhard # yast samba-client isdomainmember domain=SMB_Domain
Use of uninitialized value $server in string eq at
/usr/share/YaST2/modules/SambaAD.pm line 122 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a "" or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl will try to tell you
the name of the variable (if any) that was undefined. In some cases
it cannot do this, so it also tells you what operation you used the
undefined value in. Note, however, that perl optimizes your program
and the operation displayed in the warning may not necessarily appear
literally in your program. For example, "that $foo" is usually
optimized into "that " . $foo, and the warning will refer to the
concatenation (.) operator, even though there is no . in
your program.
Use of uninitialized value $server in concatenation (.) or string at
/usr/share/YaST2/modules/SambaAD.pm line 154 (#1)
Use of uninitialized value $server in string eq at
/usr/share/YaST2/modules/SambaAD.pm line 160 (#1)
Use of uninitialized value $server in concatenation (.) or string at
/usr/share/YaST2/modules/SambaAD.pm line 176 (#1)
Use of uninitialized value $server in string eq at
/usr/share/YaST2/modules/SambaAD.pm line 180 (#1)
Use of uninitialized value $server in string eq at
/usr/share/YaST2/modules/SambaAD.pm line 216 (#1)
Use of uninitialized value $server in string ne at
/usr/share/YaST2/modules/SambaAD.pm line 228 (#1)
Use of uninitialized value $server in concatenation (.) or string at
/usr/share/YaST2/modules/SambaAD.pm line 232 (#1)
Use of uninitialized value $server in string eq at
/usr/share/YaST2/modules/SambaAD.pm line 289 (#1)
Use of uninitialized value $domain in hash element at
/usr/share/YaST2/modules/SambaNetJoin.pm line 211 (#1)
Use of uninitialized value in string ne at
/usr/share/YaST2/modules/SambaNetJoin.pm line 213 (#1)
Use of uninitialized value $domain in concatenation (.) or string at
/usr/share/YaST2/modules/SambaNetJoin.pm line 248 (#1)
Use of uninitialized value $domain in hash element at
/usr/share/YaST2/modules/SambaNetJoin.pm line 252 (#1)
Dieser Computer ist nicht Mitglied von nil.
Warning: unable to close filehandle properly: Bad file descriptor, <STDIN> line
4 during global destruction (#1)
(S io) There were errors during the implicit close() done on a filehandle
when its reference count reached zero while it was still open, e.g.:
{
open my $fh, '>', $file or die "open: '$file': $!\n";
print $fh $data or die "print: $!";
} # implicit close here
Because various errors may only be detected by close() (e.g. buffering could
allow the print in this example to return true even when the disk is full),
it is dangerous to ignore its result. So when it happens implicitly, perl
will signal errors by warning.
Prior to version 5.22.0, perl ignored such errors, so the common idiom shown
above was liable to cause silent data loss.