A
Alythh
I need to use an input file to a main perl program.
Since I'm changing its shape often, and I'd like to add comments here
and there, I was thinking to giving it the shape of a perl program by
itself, like this:
# comment
# ...
$inputvar1=2;
# comment
$inputvar2=2;
....
and to include it some way in the main program.
Problem is, I don't know which command is used to <include> a file.
I heard about "use" and "require", but it seems to me that they're
mostly used for defining big libraries and/or OOprogramming, isnt it?
any hint?
thanks!
Alessandro Magni
Since I'm changing its shape often, and I'd like to add comments here
and there, I was thinking to giving it the shape of a perl program by
itself, like this:
# comment
# ...
$inputvar1=2;
# comment
$inputvar2=2;
....
and to include it some way in the main program.
Problem is, I don't know which command is used to <include> a file.
I heard about "use" and "require", but it seems to me that they're
mostly used for defining big libraries and/or OOprogramming, isnt it?
any hint?
thanks!
Alessandro Magni