Variables
List Exercise
- Using only the knowledge that you have gained in the course
to this point, try the following exercise:
Exercise |
- Create a new script file called "lists".
- Start with @foo = ( "ape", "cat" );
- Write code to insert the word "bat" between "ape" and "cat".
- Output @foo using: $,=" "; print @foo, "\n";
- EXTRA: Experiment by finding more than one solution...
|
No
Hint
To
Start
|

Solution
|