in reply to RE: RE: Re: required explicit package error.
in thread required explicit package error.
I think the codes seems OK. THe name of the file that i will be reading the data from is called, "elements". My question is, I am not sure if the file is even being read, or parsed. How would I print out the parsed information?? Thanks Paavprint "Input file name: "; $_ = <>; chop; open(INFILE, $_); while (<INFILE>) { if (m/total/) { s/^total\s[0-9]+\s[0-9]+\s([0-9]+)\s([0-9]+)$/$1 $2/; print; } } close INFILE;
|
|---|