in reply to Re^2: How can i read the lines and store them in an array like following fashion?
in thread How can i read the lines and store them in an array like following fashion?
Hi Thanks for your suggestion. But what i need is the program while reading the config file doesn't +take the lines that is started with hash and i can store the elements
in an array and send that array as an argumnet during the calling of a sub routine which present in another module and when that sub returns 1 to the main program then it stores
If I understand correctly, people have just shown you how to parse some input file into a structure that happens to be an @array (of arrays, but that shouldn't make a difference). Now you seem to want this array to be passed to some_routine() in Some::Module. Then one may want to know what kind of arguments that sub accepts: assuming just a list, then
my @output=Some::Module::some_routine(@array); # or my @output=some_routine(@array); if exported
should do. Which specific kind of difficulties are you having with that?
|
|---|