i've got a short program that is fully functional
it opens a (comma delimited) file from the command line
and puts it into a multi-dimentional hash of arrays
$DATA = HASH
$DATA{$key1} = HASH
$DATA{$key1}{$key2} = ARRAY
$DATA{$key1}{$key2}$value = 'data element'
so what we have is one file translating into a relatively
complex data structure.
I have this file working and would like to 'encapsulate it'
i'd like to start the next step of the program in a blank
file ...
i'm writing for advice on how to do this (although i
have assumptions)
the question then is:
what conditions must be in place in order to turn a
complete program into a 'magic box' or function that
can be included in another program?
note: if i find a good answer first i'll fill it in
i always ask here first
i'm thinking it will be along the lines of:
require 'ReadInFromFile.pl';
one of the main things i'm worried about is compile-time.
Because i am working on win32, writing utilities for
non-technical workers this program MUST be executable
i've got a compiler (freeware, named perl2exe) and i
want to make sure that when this becomes an EXE it will
incorporate the 'ReadInFromFile.pl' file.
In reply to the Magic Box system? (use require) by Buckaroo Buddha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |