Help for this page

Select Code to Download


  1. or download this
    open CMD, "/usr/local/bin/inotifywait |";
    
    while (my $output = <CMD>) {
    .......
    }
    
  2. or download this
    my @output;
    while (my $line = <CMD>) {
            chomp $line;
            push @output, $line;
    }
    
  3. or download this
    for my $out (@output) {
            if (condition exists) {
    ...
            }
            .....
    }