- or download this
open (DAT, "@ARGV");
- or download this
open mt $DAT, '<', $ARGV[ 0 ] or die "Cannot open '$ARGV[0]' $
+!";
- or download this
while ($line = <DAT>){
do (@word = split (/\W/, $line));
...
}else {
$charCount{$char}=1;
}
- or download this
my %charCount;
while ( my $line = <$DAT> ) {
...
foreach my $char ( keys %charCount ) {
print "$char => $charCount{$char}\n";
}
- or download this
close(DAT, "@ARGV");
- or download this
close $DAT;