Skip to content

Commit

Permalink
User now inputs output file name and extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie committed Apr 9, 2016
1 parent 25f6a2d commit c757054
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dictionary_scripting_Perl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
}
close READER;
open( READER,$ARGV[0] ) || die; #Takes input file from command argument
open(WRITER,">output.txt") || die; #output file is called output.txt
print "Please name output file name(Including file extension): \n"; #user inputed output file name as well as extension
$filen= <STDIN>;
chomp $filen;
open(WRITER,">$filen") || die "Output file writer failed" ; #output file writer
my $mind;
my $right;
my $capital=0;
my $wrongcap=0;
my @emptyarr = (2147483647,"");
my $emptyref =\ @emptyarr;
while(my $line = <READER>)
{
chomp $line;
Expand Down

0 comments on commit c757054

Please sign in to comment.