Help for this page

Select Code to Download


  1. or download this
    #!bin/perl
    
  2. or download this
    opendir(DIR,$directory);
    
  3. or download this
    
    my $a = @oldfiles;
    ...
    if ( $a ne $b ) {
        print "the numbers are not equal\n" and die;
        }
    
  4. or download this
    for (my $i = 0; $i < $a; $i++) {
        rename $oldfiles[$i],$newfiles[$i];
    }