# This is a command-line front end to An Gramadoir,
# an open-source Irish language grammar checker.
# Copyright (C) 2004 Kevin P. Scannell <scannell@slu.edu>
#
# More detailed information is available from the project web page:
# http://borel.slu.edu/gramadoir/
Have you tried contacting the author?
| [reply] [d/l] |
If all you are trying to do is put the text from a command line file into a variable that you can do something with, then here are the lines where it happens:
local $/; # slurp a file at a time
$_ = <ARGV>;
close ARGV;
The author has set the input record seperator to null and then slurped all of either stdin or a file on the command line into the $_ variable. If you really want this data in another variable for some reason, you can just do:
my $new_var = $_;
or to have one line per array element:
my @new_array = split;
which will default to using the standard input record seperator and the default $_ variable if no args are passed.
Now with that said, you may not get to much farther than that with what perl you do know, but at least it answered your question about where it is. It seems like most of the code you posted up to where the file is taken in is option parsing and error checking... not the prettiest to look at. | [reply] [d/l] [select] |