Help for this page

Select Code to Download


  1. or download this
    my %filehandles;
    sub open_file {
    ...
    print $fh "Hello\n";
    my $fh2 = open_file( 'path1' );
    print $fh2 "world!\n";
    
  2. or download this
    my @services = `systemctl list-unit-files`;
    if( my @smb = grep { /smb\.service/ } @services ) {
    ...
        print DATEI "chkconfig smb: OK\n";
        print DATEI "Output:_\n " . join( "", @smb) . \n\n;
    };