I'm bringing data in from a:\, substituting x for s and counting the number of substitutions. Then I need to print the results out in a report. I can't get the Header(format REPORT_TOP=) to print out at all. I'm not sure what I'm missing. Also, the body prints out mostly zeros. Anybody see...
I'm bringing data in and substituting all s with xx. That works. How do I count the number of matches made and print that number?
@matches=....
$howMany=@matches
print $howMany
Am i going the right direction? Where is this inserted in my program? Thanks in advance for any help. Especially...
Thanks mucho to stillflame on my last problem with this.
This program is supposed to ask the user to input five words. Then the input is to be sent to a:\. Next the five words are supposed to be brought back with substitutions made to them. It does all of that, but if the user inputs two or...
So it should look like:
open(FIVEWORDS, ">>a:\\test.txt."));
You'll have to forgive me. This stuff is very new to me. That didn't make sense to me. Thanks just the same though.
#open (FIVEWORDS, ">>a:\\test.txt"; doesn't append any data to a:\test.txt
#and I can't figure out what the problem is. Any suggestions? Thanks much.
while ($quit ne "q")
{
print "Enter any word and return: "; #user input
chomp ($word1=<STDIN>)...
I'm obviously desperate. I'm taking a course that covers "Perl 5 by Example" in two weeks and it's just not sinking in. I can't get the simple homework assignments to work and I don't have a lot of time to spend on this.
Here it is:
Create Perl script that does the following...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.