Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    use strict;
    
  2. or download this
    if ($#ARGV != 4) {
     print "usage: run batch file 'run' not this one\n";
    ...
    my $wordfile = $ARGV[0];
    my $textfile=$ARGV[3];
    my $OutPutFile=$ARGV[4];
    
  3. or download this
    die "Usage: run batch file 'run' not this one\n"
      unless @ARGV==3;
    
    my ($wordfile, $textfile, $outfile)=@ARGV;
    
  4. or download this
    open (IF1,"$wordfile")|| die "cannot open the file";
    open (PF, "$textfile")|| die "cannot open the file";
    open (OF,">$OutPutFile")|| die "cannot open the file";
    
  5. or download this
    open my $wfh, '<', $wordfile or die "Can't open `$wordfile': $!\n";
    open my $tfh, '<', $textfile or die "Can't open `$textfile': $!\n";
    open my $ofh, '>', $outfile or die "Can't open `$outfile': $!\n";
    
  6. or download this
    my $List1Ref=ReadDataInHash (*IF1);
    
  7. or download this
    my %words=ReadDataInHash($wordfile);
    
  8. or download this
    sub ReadDataInHash()
    
  9. or download this
    {
        my $x = shift;
    ...
        }
        return {%list1};
    }
    
  10. or download this
    sub ReadDataInHash {
        my $file=shift;
    ...
        }
        %words;
    }
    
  11. or download this
    while (my $line=<PF>) {
        chomp($line);
    ...
        print OF "\n";
        @arrAbs=();
    }
    
  12. or download this
    while (my $line=<$tfh>) {
        chomp $line;
    ...
        }
        print $ofh "\n";
    }
    
  13. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    __END__
    
  14. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    __END__
    
  15. or download this
    while (<>) {
        chomp;
    ...
          for split /\./, $abs;
        print "\n";
    }