# MyModule.pm package MyModule; sub mysub { print("Hello World\n"); } 1;
use MyModule; MyModule::mysub() for 1..10;
In reply to Re^3: How to read code from file and execute it in loop ?
by ikegami
in thread How to read code from file and execute it in loop ?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |