Help for this page
my %filehandles; sub open_file { ... print $fh "Hello\n"; my $fh2 = open_file( 'path1' ); print $fh2 "world!\n";
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; };