- or download this
#!/usr/bin/perl
use warnings;
use strict;
- 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];
- or download this
die "Usage: run batch file 'run' not this one\n"
unless @ARGV==3;
my ($wordfile, $textfile, $outfile)=@ARGV;
- 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";
- 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";
- or download this
my $List1Ref=ReadDataInHash (*IF1);
- or download this
my %words=ReadDataInHash($wordfile);
- or download this
sub ReadDataInHash()
- or download this
{
my $x = shift;
...
}
return {%list1};
}
- or download this
sub ReadDataInHash {
my $file=shift;
...
}
%words;
}
- or download this
while (my $line=<PF>) {
chomp($line);
...
print OF "\n";
@arrAbs=();
}
- or download this
while (my $line=<$tfh>) {
chomp $line;
...
}
print $ofh "\n";
}
- or download this
#!/usr/bin/perl
...
}
__END__
- or download this
#!/usr/bin/perl
...
}
__END__
- or download this
while (<>) {
chomp;
...
for split /\./, $abs;
print "\n";
}