in reply to RE: RE: Re: required explicit package error.
in thread required explicit package error.
Verbal,
I tried the code out the way you had asked.It takes the input in
however, it doesn't do anything with it. By the way, I am the one, who is trying
to read the total from a file, and spit it out to another file. My code reads following:
I think the program is getting the input, however it is just not doing anything with it. Once I enter the name of the file, it just sits there, instead of parsing. How come?? 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
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: required explicit package error.
by nuance (Hermit) on Jun 15, 2000 at 23:43 UTC |
In Section
Seekers of Perl Wisdom