Help for this page

Select Code to Download


  1. or download this
    opendir DIR, $dir or die "cannot open dir $dir: $!";
    my @filenames= readdir DIR;
    closedir DIR;
    
  2. or download this
    open my $fh, "<", $file or die $!;
    
    while (<$fh>) {
        print if /+=======+=======+============+============+============+
    +/ .. /+-------+-------+------------+------------+------------+/;
    }
    
  3. or download this
    foreach my $file (@filenames)
    my $filepath = "/FILEPATH/$file";
    ...
        print if($in);
        $in = 0 if /+-------+-------+------------+------------+-----------
    +-+/;
    }