
7stud
Enthusiast
Mar 30, 2010, 1:41 AM
Post #2 of 16
(1055 views)
|
|
Re: [smsh] Printing and Counting words
[In reply to]
|
Can't Post
|
|
...then put your assignment aside and try something simpler. Declare an array with 3 words in it. Use a for loop to step through the elements of the array. If the word has an 'o' in it, print the word. When you post the code for that, we'll move on. When you post code, surround it with code tags so that it looks like this:
use strict; use warnings; use 5.010; my $string = 'hello world'; print $string, "\n"; --output:-- hello world
(This post was edited by 7stud on Mar 30, 2010, 1:43 AM)
|