Help for this page

Select Code to Download


  1. or download this
    BEGIN { $^I = ".tmp"; }
    BEGIN { $/ = "\n"; $\ = "\n"; }
    LINE: while (defined($_ = <ARGV>)) {
    ...
        close ARGV if eof;
    }
    -e syntax OK
    
  2. or download this
    my @ARGV = glob("*.txt");
    foreach my $ARGV {
    
  3. or download this
    use cwd
    my $dir = cwd()
    foreach my $files (global("$dir/*.txt")) {