Previous section To contents

8.5 Simple exercises

  • Save the hello_world.pike program as hello_world.pike.pmod, then make a program that loads this module and calls its main().
  • Make a directory called Programs.pmod and put all the examples you have written so far in it. Make a program that runs one of those programs. Make sure the program can be modified to run another of your examples by changing what module it loads.
  • Copy the file hello_world.pike.pmod to programs/module.pike.pmod and then write a program that runs hello_world without actually using the identifier hello_world.
  • Try putting Programs.pmod in another directory and then try to run the programs from the last two examples.

  • Previous section To contents